An installationpyinstaller
pip install pyinstaller
To view the installation results, run the command:
Pyinstaller--version
650) this.width=650; "src=" http://images0.cnblogs.com/blog2015/592447/201508/231634004416060.jpg "/>
Indicates that the installation was successful.
Two simple compile, run the code:
Pyinstaller-f D:\pyworker\learning\hello.py
650) this.width=650; "style=" line-height:1.5; "src=" http://images0.cnblogs.com/blog2015/592447/201508/ 231635396601405.jpg "/>
The compilation results will appear in the directory:
650) this.width=650; "src=" http://images0.cnblogs.com/blog2015/592447/201508/231637087693229.jpg "/>
Parameter description:
-F means a single executable file is generated
-W indicates that the console window is removed, which is useful in GUI interfaces. But if it is a command-line program, then remove this option!
-P means you customize the classpath that you need to load, and you don't normally use
-I represents an icon for an executable file
Warm reminder: 3.5 version Pro test can 2.7 3.6 compatibility issues may be
Python program compiled into EXE format