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

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

    Copy the folder

    \Anaconda3\Library\plugins\platforms
    

    to

    \$\
    

    where $ is your project interpreter folder. For example:

    "\project\anaconda_env\Scripts\"
    

    because PyCharm calls the python.exe in this folder, not the one in \Anaconda3.

提交回复
热议问题