Package Python applications using PyInstaller

PyInstaller installation

pip install pyinstaller

PyInstaller use

Commonly used parameters during packaging are shown in the following table:

Optional parameters meaning
-F Package a Python program into a single executable file
-D Package Python program into a folder
-i Generate icons, only available on Windows platform
-n Specify the name of the generated file after packaging
-w Disable command line pop-up

Common commands

Package a single file without command line

 pyinstaller -wF <python文件名>

Guess you like

Origin blog.csdn.net/FuckerGod/article/details/132235756
Recommended