在运行程序的时候突然发现了这两个问题:module ‘matplotlib’ has no attribute ‘artist’ 以及 module ‘pandas’ has no attribute ‘compat’,苦苦查询了很久,刚开始重新下载pandas包发现不起作用,最后发现错误根源在于matplotlib,于是重新升级matplotlib到3.0.2版本就行了。
anaconda代码:
conda uninstall matplotlib
conda install matplotlib
或者用pip也可以。
本文地址:https://blog.csdn.net/qq_31829611/article/details/87934800