AttributeError: module 'matplotlib' has no attribute 'artist'解决方案
程序员文章站
2022-03-18 21:37:58
...
网上有答案说是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
几经等待,问题解决。
推荐阅读
-
module ‘seaborn‘ has no attribute ‘scatterplot‘解决方案
-
AttributeError: module ‘community‘ has no attribute ‘best_partition‘ 问题解决方法
-
【python】解决AttributeError: module ‘scipy.misc‘ has no attribute ‘toimage‘问题
-
【Tensorflow】Linux下Tensorflow报错:AttributeError: module ‘tensorflow‘ has no attribute ‘xxxx‘
-
AttributeError: 'module' object has no attribute 'main'
-
AttributeError: module 'sklearn' has no attribute 'linear_model'
-
pycharm安装 suds模块报错:AttributeError: module 'pip' has no attribute 'main'
-
python efficientdet AttributeError: module ‘gast‘ has no attribute ‘Num‘
-
AttributeError:module‘cv2.cv2‘has no attribute ‘ TrackerCSRT_create‘
-
Python AttributeError: 'Module' object has no attribute 'STARTF_USESHOWINDOW'