PyQt5 gets “No module named 'PyQt4'” error calling matplotlib.pyplot in Python 3.5

后端 未结 6 1790
春和景丽
春和景丽 2021-02-11 08:19

I am using Anaconda with Python 3.5.2, Matplotlib 2.0.2, PyQt5.6 on a windows 10 machine. When I import matplotlib.pyplot as plt I get the following error:

...
         


        
6条回答
  •  孤街浪徒
    2021-02-11 09:20

    3 steps can solve this problem:

    pip uninstall pyqt5
    pip uninstall matplotlib
    pip install matplotlib
    

提交回复
热议问题