解决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
欢迎大家交流学习,任何问题都可以留言
Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐