AttributeError: module 'matplotlib' has no attribute 'artist'解決方案

網上有答案說是conda unistall/install matplotlib重裝即可解決,但我嘗試發現不行。

github上給出的答案是重裝更新matplotlib,然後我查看了我anaconda環境中的matplotlib的版本,是3.0.0的,答案說需要更新到3.0.2以上。

於是我卸載了當前matplotlib,同時安裝conda install matplotlib=3.0.2發現dependence conflict,提示如下:

Solving environment: ...working... failed


UnsatisfiableError: The following specifications were found to be in conflict:
  - anaconda/pkgs/free/win-64::vs2015_runtime==14.0.25420=0
  - matplotlib==3.1.1 -> vc[version='>=14.1,<15.0a0'] -> vs2015_runtime[version='>=14.15.26706']
Use "conda info <package>" to see the dependencies for each package.

應該是anaconda版本需要升級了,於是

conda update anaconda

 幾經等待,問題解決。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章