How can I use py2exe to modify python3.2 code for exe

Possible duplicate:
py2exe for Python 3.0

I read py2exe can create a standalone program using the Python version up to 3. How, using Python 3.2, create, for example. "Hello world .exe", please?

+4
source share
1 answer

p2exe is pretty much dead if you are not using 2.7 or less.

1) See cx-freeze

2) Install cx-freeze

3) Create a script (test.py):

print("Hello there, anyone else hate hello worlds?") 

4) Create setup.py file

 from cx_Freeze import setup, Executable setup( name = "hatefulworld", version = "0.1", description = "I wish programming was this easy", executables = [Executable("test.py")]) 

5) Run the python command:

 python setup.py build 

6) ** Cross your fingers, and if it was a successful change in the build \ exe directory and running your program.


I am glad that you asked for a textbook on the world of greeting, and not useful, because it is never as simple as described above.

+9
source

All Articles