How to fix “could not find or load the Qt platform plugin windows” while using Matplotlib in PyCharm

前端 未结 21 1056
迷失自我
迷失自我 2020-12-02 13:00

I am getting the error \"could not find or load the Qt platform plugin windows\" while using matplotlib in PyCharm.

How can I solve this?

21条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-02 13:49

    SOLUTION FOR WINDOWS USERS

    Create new environment variable with:

    name: QT_PLUGIN_PATH path: C:\yourpythonpath\Lib\site-packages\PyQt5\Qt\plugins

    after that exe file will work

提交回复
热议问题