PyQt4打包exe文件

使用到工具pyinstaller

pip install pyinstaller

使用指令打包,其中xxx.ico为需要的图标,xxx.py为要打包的py文件

pyinstaller -w --icon xxx.ico --onefile xxx.py

然后在dust文件夹下就能看到打包好的exe文件

原文地址:https://www.cnblogs.com/Mysterious/p/7624724.html