遇到问题
安装完pyQt5,运行相应的python文件时报错:This application failed to start because no Qt platform plugin could be initialized.Reinstalling the application may fix this problem.
解决办法
经过多次搜索尝试,找到解决办法——添加环境变量:QT_PLUGIN_PATH,操作如下:
下图中的变量值,每个人是不一样的,找到自己pip安装的文件夹路径即可
设置好后,重启pycharm,再次运行即可。
参考文献
https://blog.csdn.net/tonny7501/article/details/102640034
https://blog.csdn.net/HandsomeHong/article/details/118653589