[pyqt5]解决could not find or load the Qt platform plugin windows

PyQt5+python3+pycharm开发环境配置时,遇到了This application failed to start because it could not find or load the Qt platform plugin "windows".的问题。导致无法通过pycharm运行Pyqt5的应用


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


解决方法:

在环境变量中增加:

QT_QPA_PLATFORM_PLUGIN_PATH


C:\Python34\Lib\site-packages\PyQt5\plugins                                      <<-----------------这是我PyQt5的plugins文件夹所在位置



技术分享


  


文章来自:http://blog.csdn.net/a359680405/article/details/45077187
© 2021 jiaocheng.bubufx.com  联系我们
ICP备案:鲁ICP备09046678号-3