Last active
August 29, 2015 14:05
-
-
Save AndreiD/2b72eac006460c16d9db to your computer and use it in GitHub Desktop.
From python script to exe to setup.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Write your python script | |
Check -> wxPython is a GUI toolkit for the Python programming language. It allows Python programmers to create programs with a robust, highly functional graphical user interface, simply and easily. | |
Helper for wxPython http://sourceforge.net/projects/wxformbuilder/ (a must for beginners) | |
2. type the following command cd c:\python27\scripts press enter, this should be where your pip.exe file is located. | |
Once you are in this directory type pip install pyinstaller press enter | |
google pywin32, install the 32/64 bit variant. | |
2. go to your script directory and write pyinstaller --icon=icon.ico --noconsole -nProgramName main.py | |
3. Download and install innosetup -> http://www.jrsoftware.org/isdl.php | |
4. Create a new project with wizzard. | |
Congratulations, you reached the end of this :) | |
Method 2: | |
http://www.py2exe.org/index.cgi/Tutorial | |
install py2exe | |
setup.py | |
=========== | |
from distutils.core import setup | |
import py2exe | |
setup(windows=['main.py']) | |
=========== | |
python setup.py py2exe |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment