PyQt5 - Failed to load platform plugin “windows”. Available platforms are: windows, minimal

前端 未结 8 1073
伪装坚强ぢ
伪装坚强ぢ 2020-12-06 02:27

When I try to run any PyQt5 program from Eclipse, I got this error.

Failed to load platform plugin \"windows\". Available platforms are: windows, mini

8条回答
  •  伪装坚强ぢ
    2020-12-06 02:59

    I encountered this issue with PyQt5 5.0.2, Windows 8, Python 3.3.2; slightly different error message:

    Failed to load platform plugin "windows". Available platforms are:

    Set the following environment variable and then run the application.

    $env:QT_QPA_PLATFORM_PLUGIN_PATH="C:\Python33\Lib\site-packages\PyQt5\plugins\platforms"

提交回复
热议问题