ImportError: cannot import name cbook

前端 未结 5 1105
星月不相逢
星月不相逢 2020-12-07 00:39
>>> import matplotlib
Traceback (most recent call last):
  File \"\", line 1, in 
  File \"/usr/local/lib/python2.7/dist-packages         


        
5条回答
  •  情书的邮戳
    2020-12-07 00:59

    My experience is to be careful about the version of matplotlib. Today the latest version is 3.3 and has this issue. So I specify the previous version that worked for me:

    pip install matplotlib==3.2.2
    

提交回复
热议问题