1. 程式人生 > WINDOWS開發 >Could not find the Qt platform plugin windows錯誤解決方法

Could not find the Qt platform plugin windows錯誤解決方法

在PyCharm中執行PyQt5視窗程式時,出現了下圖所有的錯誤提示。

技術分享圖片

出現該問題的原因是環境變數沒有新增。

解決方法:
在環境變數中增加:
QT_QPA_PLATFORM_PLUGIN_PATH

路徑:C:\Program Files\Python38\Lib\site-packages\PyQt5\Qt\plugins