通过Pycharm 运行程序是,提示:This application failed to stat could not find or load the Qt platform plugin “windows”
原因:环境变量中缺少:QT_QPA_PLATFORM_PLUGIN_PATH
在系统中添加此环境变量:

QT_QPA_PLATFORM_PLUGIN_PATH
E:\学习资料\Qt\venv\Lib\site-packages\PyQt5\Qt\plugins
通过Pycharm 运行程序是,提示:This application failed to stat could not find or load the Qt platform plugin “windows”
原因:环境变量中缺少:QT_QPA_PLATFORM_PLUGIN_PATH
在系统中添加此环境变量:
QT_QPA_PLATFORM_PLUGIN_PATH
E:\学习资料\Qt\venv\Lib\site-packages\PyQt5\Qt\plugins