解决This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Windows pyqt打开designer.exe报错
报错信息
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
解决办法
替换两个文件
cd ..\Python\Lib\site-packages\pyqt5_tools\Qt\plugins\platforms
复制上图中的两个文件到
cd ..\Python\Lib\site-packages\pyqt5_tools\Qt\bin\platforms
将将原有文件重命名 - ,放置新文件
再次打开designer.exe,问题决了
安装pyqt5
pip install PyQt5 -i https://pypi.douban.com/simple
安装qt工具
pip install PyQt5-tools -i https://pypi.douban.com/simple
欢迎大家交流学习,任何问题都可以留言