解决pyqt5使用designer.exe时报错 This application failed to start because it could not find or load th

1. 我们安装完PyQt5-tools后使用designer.exe时出现了以下错误

PyQt5:This application failed to start because it could not find or load the Qt platform plugin
在这里插入图片描述
这是因为运行时缺少相应的dll库所导致的

2. 解决办法

我们把 QT/plugins/platforms/ 下的dll复制出来,替换掉QT/bin/platforms/ 的dll文件即可,主要是缺少一个 qwindows.dll 导致这个问题出现的

在这里插入图片描述

在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/gmq_syy/article/details/108979300