天天看点

pyqt5打包成exe 及 ...because it could not find or load the Qt platform plugin

打包

安装​

​pyinstaller​

​。

pip install      

命令行执行如下命令,​

​main.py​

​​为应用主程序,​

​-F​

​​输出为单文件,​

​-w​

​ 表示去掉控制台窗口。

pyinstaller -F -w  main.py      

plugin “windows”问题

pyqt打包完成后,运行出错:

This application failed to start because it could not find or load the Qt platform plugin “windows”…
pyqt5打包成exe 及 ...because it could not find or load the Qt platform plugin

效果