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

前端 未结 21 1049
迷失自我
迷失自我 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:56

    On Windows:

    1. Copy the folder platforms:

      C:\Users\%USERNAME%\AppData\Roaming\pyinstaller\bincache00_py35_64bit\pyqt5\qt\plugins\platforms 
      
    2. Paste the folder platform into the folder location of the file .exe:

      Example:

      c:\MyFolder\yourFile.exe
      c:\MyFolder\platforms
      

提交回复
热议问题