use cx_freeze, I checked it.
cx_Freeze is the module used to create python scripts in an executable file (.exe). This is a very easy way.
Download and install cx_Freeze windows binary for your python version from http://www.lfd.uci.edu/~gohlke/pythonlibs/
Find the location of the source folder. for example, I created test.py and saved it in c: \ samp. C: \ SAMP \ test.py
x="hai this is an exe file created from python scripts using cxfreeze. Press Enter to exit >> " y=input(x)
Create a folder to store the assembly file (.exe and other files). For example, I created the folder c: \ samp \ build \
Open a command prompt (start-> run type "cmd" press enter) and type console
C: \ Documents and Settings \ suh> c: \ python32 \ scripts \ cxfreeze c: \ samp \ test.py --target-dir = c: \ samp \ build
for additional options like C:\Documents and Settings\suh>c:\python32\scripts\cxfreeze -help
source share