| | |
Py2exe
Please support our Python advertiser: Programming Forums - DaniWeb Sister Site
Thread Solved |
Well, I posted the tutorial which explains it well. Regardless, put this in a file called setup.py in the same location as your script. Put this in setup.py:
Then, open the DOS/MS-Windows command prompt, and move to your script's location. Then use this command:
That should make your .exe. If you have an error, please type out what it says so I can understand what went wrong!
python Syntax (Toggle Plain Text)
from distutils.core import setup import py2exe setup(console=["YOURSCRIPTNAME.py"]) # replace with your program's filename
Python Syntax (Toggle Plain Text)
python setup.py py2exe
Last edited by shadwickman; Jul 4th, 2009 at 3:52 am.
"Two good old boys in a fire-apple red convertible. Stoned. Ripped. Twisted. Good people."
- Hunter S. Thompson
my photography
- Hunter S. Thompson
my photography
In case you don't like to bother writing the codes for setup.py, use GUI for Py2exe which can export setup.py
www.code.google.com/p/gui2exe/
www.code.google.com/p/gui2exe/
And I just found this:
http://www.pyinstaller.org/
It claims to make executables for Windows, Linux, and Mac. I have never used it myself though.
http://www.pyinstaller.org/
It claims to make executables for Windows, Linux, and Mac. I have never used it myself though.
"Two good old boys in a fire-apple red convertible. Stoned. Ripped. Twisted. Good people."
- Hunter S. Thompson
my photography
- Hunter S. Thompson
my photography
![]() |
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: Loopping in Python
- Next Thread: wxpython gui running on a server
Views: 628 | Replies: 12
| Thread Tools | Search this Thread |
Tag cloud for Python
anti array avogadro beginner builtin clear client code color count csv curved def dictionary dynamic enter examples excel file float format frange ftp function gui heads hints homework import input java lapse line lines linux list lists loop microcontroller mouse multiple mysqldb mysqlquery newb number numbers output parsing path port prime program programming projects py2exe pygame pyopengl pyqt python random raw_input recursion recursive redirect script scrolledtext singleton software sqlite ssh stderr string strings subprocess sum syntax table terminal text thread threading time tkinter tlapse tooltip tuple tutorial twoup ubuntu unicode unix urllib urllib2 variable web-scrape wikipedia windows word wx.wizard wxpython






