Could not find the Qt platform plugin windows错误解决方法

时间:2020-05-30 10:43:23   收藏:0   阅读:218

在PyCharm中运行PyQt5窗口程序时,出现了下图所有的错误提示。

 技术图片

出现该问题的原因是环境变量没有添加。

解决方法:
在环境变量中增加:
QT_QPA_PLATFORM_PLUGIN_PATH 

路径:C:\Program Files\Python38\Lib\site-packages\PyQt5\Qt\plugins

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!