记录下PyQt程序的打包。
一,安装
pip3 install PyInstaller
二,打包
pyinstaller -w -n app app.py
根据需要选择打包参数,例如:
-F表示生成单文件模式,即只有一个可执行文件,比如windows下的exe。执行会比较慢。
-w表示生成窗口模式,即不显示控制台窗口
-i表示指定图标文件,例如-i icon.ico
-n表示指定输出文件名,例如-n app.exe

三,执行
打包后的程序位于 dist文件下。

具体程序 参考:
PyQt 入门