| | |
Py2exe
![]() |
•
•
Join Date: Oct 2008
Posts: 45
Reputation:
Solved Threads: 6
I'll assume you have already read the tutorial at:
http://www.py2exe.org/index.cgi/Tutorial
basically, once you have py2exe installed you need to make a script to build the exe. Make a file called setup.py in the directory with the python file you want to make an exe out of. put the following inside setup.exe:
replacing yourscript.py with your scripts name.
then run it from the command line with
If it completes succesfully you should now have an exe in your folder.
http://www.py2exe.org/index.cgi/Tutorial
basically, once you have py2exe installed you need to make a script to build the exe. Make a file called setup.py in the directory with the python file you want to make an exe out of. put the following inside setup.exe:
Python Syntax (Toggle Plain Text)
from distutils.core import setup import py2exe setup(console=['yourscript.py'])
replacing yourscript.py with your scripts name.
then run it from the command line with
Python Syntax (Toggle Plain Text)
python setup.py py2exe
Last edited by tyincali; Oct 28th, 2008 at 1:02 pm.
If your using a GUI you may want to take a look at this piece of code:
http://www.daniweb.com/forums/post623822-10.html
http://www.daniweb.com/forums/post623822-10.html
Make it idiot proof and someone will make a better idiot.
Check out my Site | and join us on IRC | Python Specific IRC
Check out my Site | and join us on IRC | Python Specific IRC
![]() |
Similar Threads
- need a help regarding "setup" in pyton using py2exe (Python)
- Question about PY2EXE... (Python)
- wxpython and py2exe (Python)
- Py2exe and Jython - Please help me! (Python)
- Py2exe help (Python)
Other Threads in the Python Forum
- Previous Thread: Python
- Next Thread: Python and Unicode
| Thread Tools | Search this Thread |
abrupt alarm ansi anti approximation assignment avogadro backend beginner binary bluetooth calculator character cmd code customdialog cx-freeze data decimals dictionaries dictionary directory dynamic error examples exe file float format function gnu graphics gui halp heads homework http ideas import input java launcher leftmouse line linux list lists loop module mouse number numbers output parsing path pointer port prime programming progressbar projects push py2exe pygame pyglet pyqt python random recursion schedule screensaverloopinactive script scrolledtext sqlite statistics string strings sudokusolver sum table terminal text thread threading time tlapse tricks tuple tutorial twoup ubuntu unicode urllib urllib2 variable ventrilo wikipedia write wxpython xlib






