在用pyinstaller打包pyqt5时,打包过程没有错误,但是exe文件运行时报错
qt.qpa.plugin: Could not find the Qt platform plugin "windows" in ""
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
求解
不打包 直接运行py没问题吗?程序我看下OK不
打包的时候没带上qt5的插件
使用 qt 需要注意版權的問題。
全部開源,或者購買商業許可。
參考:
PyQt/PyQtLicensing - Python Wiki
https://wiki.python.org/moin/PyQt/PyQtLicensing
在打包pyqt5的过程中,出现了各种问题,包括dll缺失,no moudle,还有之前提的找不到,主要解决方法包括plugins文件,platforms文件,还有查找各种dll文件,升级pyinstaller,此问题是在变量环境加入qt的环境就好了