After the procedure was finished yesterday, think about the actual activity can not open the IDE to run the scene, and then wondering how to find how to package on the Internet
There are probably two ways to search the Internet.
Py2exe
Pyinstaller
The first is that most of the evaluations look low and seem like a lot of trouble.
So I chose the second kind.
Installation process: Two ways have been introduced before
Http://www.cnblogs.com/ronyjay/p/6483522.html
Pip
Third-party installation
First I chose to try a third-party installation:
Download Pyinstaller's Package online, address https://github.com/pyinstaller/pyinstaller/
After unpacking, enter Python setup.py install in directory
But the error.
Error message Missing parentheses in call to ' print '
Search the internet for half a day have not found a solution, here if someone knows, ask for advice
Then try PIP installation
PIP installation is still relatively smooth, not too much trouble
Pip Install Pyinstaller
After the installation is successful, you can enter the PIP list in the Python directory to view the installed libraries
Packaging program
Come to the program directory that needs to be packaged, enter the instructions
Pyinstaller-f my program. py
And then it's an error.
The problem of encoding format, the need to package the PY program into English name, successful packaging success
Run
In this machine, and another machine running EXE program, can run successfully, but there will be a command line window, check the following is the problem of packaging parameters
Pyinstaller-f-W-i manage.ico app.py-F: Packaged as a single file -w:windows program, does not display the command line window -I: Is the program icon, app.py is the py file you want to pack.
After repackaging, it will run normally
Pyinstaller Package Python program (python3.5)