pyside2 pyqt5安装后出现Could not load the Qt platform plugin "windows" in "" even though it

解决办法:
在环境变量中添加
QT_QPA_PLATFORM_PLUGIN_PATH
D:\Anaconda3\Lib\site-packages\PySide2\plugins

后者为PySide2的安装目录,如下图

在这里插入图片描述

注销重新登录后即可。

猜你喜欢

转载自blog.csdn.net/yizhou2010/article/details/83541163