热线电话:13121318867

登录
2020-12-28 阅读量: 2147
python报错AttributeError: module' pandas' has no attribute' compat'

问:

python报错AttributeError: module' pandas' has no attribute' compat'

image.png

答:

可通过更新matplotlib版本为3.0.2来解决此报错,更新代码如下:

pip install matplotlib==3.0.2

如果发现更新速度慢,可在后面指定镜像源来解决,代码如下:

pip install matplotlib==3.0.2 -i https://pypi.tuna.tsinghua.edu.cn/simple

59.9825
0
关注作者
收藏
评论(0)

发表评论

暂无数据
推荐帖子