pyqt5 应用,开发运行时正常,
1、 安装
pip uninstall pyqt5
pip install pyqt5== 5.8.2 #安装pyqt5 版本号5.8.2
如果安装报错
You are using pip version 19.0.3, however version 19.2.3 is available.
You should consider upgrading via the ‘python -m pip install --upgrade pip’ command.
执行
python -m pip install -upgrade pip 更新pip的版本
python -m pip install -U pip # 直接更新安装pip
2、打包
pip install pyinstaller
pyinstaller -F -w -n mypro .\test\paramterTest.py
3、参数说明
-F:打包成 exe 可执行文件
-w:无需控制台
-n: 命名
-i : 图标 .ico
参考文档
https://www.imooc.com/article/74152#