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 " to see the dependencies for each package.

应该是anaconda版本需要升级了,于是

conda update anaconda

 几经等待,问题解决。

你可能感兴趣的:(机器学习笔记)