Reputation: 95
We are trying to make our python script execute itself as a .exe file, without having python installed. Like if we give our program to someone else, they wouldn't need to install python to open it.
It is a text-based game like zork, so we need a gui, like cmd, to run it.
We have tried using py2exe, and pyinstaller, but none of them made any sense, and don't work with 2.7.3 for some reason.
Any help?
Upvotes: 5
Views: 17720
Reputation: 779
Assuming you have pip installed which you should after installing Python inside folder Scripts. Install PyInstaller using pip, type in the command prompt the following.
After you install PyInstaller locate where your pyinstaller files are (they should be where your pip files are inside the Scripts folder) and go to the command prompt and type the following.
The above command will create a folder called “dist” inside the Scripts folder, this will contain your single executable file “yourscript.exe”.
Upvotes: 3
Reputation: 334
Check out this wiki on deploying Python applications:
http://wiki.python.org/moin/deployment
In addition to what's already been mentioned, it has links to Movable Python, Python-Packager, and others.
Upvotes: 1
Reputation: 19537
Can always try http://cx-freeze.sourceforge.net, works with all versions of python including 3.3.
Upvotes: 1