天天看點

QT5運作是出現This application failed to stat could not find or load the Qt platform plugin "windows"

通過Pycharm 運作程式是,提示:This application failed to stat could not find or load the Qt platform plugin “windows”

原因:環境變量中缺少:QT_QPA_PLATFORM_PLUGIN_PATH

在系統中添加此環境變量:

QT5運作是出現This application failed to stat could not find or load the Qt platform plugin "windows"

QT_QPA_PLATFORM_PLUGIN_PATH

E:\學習資料\Qt\venv\Lib\site-packages\PyQt5\Qt\plugins