Qt报错:qt.qpa.plugin: Could not find the Qt platform plugin “windows“ in ““

1.安装pyside2

pip install -U pyside2 -i https://pypi.doubanio.com/simple

2.在环境变量中添加
变量名:QT_QPA_PLATFORM_PLUGIN_PATH
变量值:D:\Anaconda3\Lib\site-packages\PySide2\plugins

3.注销重新登录windows系统

4.打开相关编译器的cmd

win键+s

Qt报错:qt.qpa.plugin: Could not find the Qt platform plugin “windows“ in ““_第1张图片

cd /d 你的exe所在目录
windeployqt xxxxxxx.exe

重新运行即可

你可能感兴趣的:(Qt,环境搭建等)