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?
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”.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With