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

前端 未结 21 1054
迷失自我
迷失自我 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条回答
  •  -上瘾入骨i
    2020-12-02 13:34

    If you want to visualize your matplotlibs in an alternative way, use a different backend that generates the graphs, charts etc.

    import matplotlib
    matplotlib.use('TKAgg')
    

    This worked for me.

提交回复
热议问题