运行pyqt5程序出错
QObject::moveToThread: Current thread (0x20d43bbd7c0) is not the object's thread (0x20d43bbd5e0).
Cannot move to target thread (0x20d43bbd7c0)
qt.qpa.plugin: Could not load the Qt platform plugin "windows" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: minimal, offscreen, webgl, windows.
解决方法:
在python3.6的环境下安装5.8.2的pyqt5不会出现上述问题
博客指出运行PyQt5程序时出现线程移动错误和无法加载Qt平台插件“windows”的问题,提示应用因无法初始化Qt平台插件而启动失败。解决办法是在Python3.6环境下安装5.8.2版本的PyQt5,可避免此类问题。

3万+

被折叠的 条评论
为什么被折叠?



