win10安装pyqt5,出现“This application failed to start because no Qt platform plugin could be initialized“

win10  下安装好python,再安装pyqt5,pyqt5-tools

在python 目录下  \Python\Python38\Lib\site-packages\pyqt5_tools\Qt\bin ,运行 designer.exe,出现以下错。

win10安装pyqt5,出现“This application failed to start because no Qt platform plugin could be initialized“_第1张图片py

处理方法

 在系统变量中,新增变量”QT_PLUGIN_PATH“

变量值则为pyqt5-tools\Qt\plusins 目录

win10安装pyqt5,出现“This application failed to start because no Qt platform plugin could be initialized“_第2张图片

 确定后,退出,应该就可以了

你可能感兴趣的:(win10安装pyqt5,出现“This application failed to start because no Qt platform plugin could be initialized“)