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

问题:

vscode中运行labelImg.py报错:

qt.qpa.plugin: Could not find the Qt platform plugin “windows” in “”
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
pyqt5配置后报错:qt.qpa.plugin: Could not find the Qt platform plugin “windows“ in ““_第1张图片
解决:

在环境变量–>系统变量中添加以下内容:
变量名:QT_PLUGIN_PATH
变量值:Qt5中plugins文件夹的位置
pyqt5配置后报错:qt.qpa.plugin: Could not find the Qt platform plugin “windows“ in ““_第2张图片
重启VS之后可以正常运行
pyqt5配置后报错:qt.qpa.plugin: Could not find the Qt platform plugin “windows“ in ““_第3张图片

你可能感兴趣的:(目标检测,qt,windows,开发语言)