pyqt5报错:qt.qpa.plugin: Could not find the Qt platform plugin "windows" in "" Thi

Posted shiyixirui

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了pyqt5报错:qt.qpa.plugin: Could not find the Qt platform plugin "windows" in "" Thi相关的知识,希望对你有一定的参考价值。

环境:

win10

Python 3.7.5

vs code

 

 

解决方法:

新建环境变量,然后重启  vs code 就可以了

QT_QPA_PLATFORM_PLUGIN_PATH

C:UsersAdministratorDesktop新建文件夹 (2)venvLibsite-packagesPyQt5Qtplugins

技术图片

 

以上是关于pyqt5报错:qt.qpa.plugin: Could not find the Qt platform plugin "windows" in "" Thi的主要内容,如果未能解决你的问题,请参考以下文章

Ubuntu 22.04 解决 使用 Qt报错:qt.qpa.plugin: Could not load the Qt platform plugin “xcb“ in ““ even...

使用OPENCV错误:qt.qpa.plugin: Could not load the Qt platform plugin “xcb“

PyQt5 不能在 ChromeOS 上运行?

plugin cannot be loaded for module “QtQuick“ && Could not load the Qt platform plugin “windows“

plugin cannot be loaded for module “QtQuick“ && Could not load the Qt platform plugin “windo

plugin cannot be loaded for module “QtQuick“ && Could not load the Qt platform plugin “windo