#AttributeError: module 'mat

2018-03-08  本文已影响16人  发现未知的自己
import matplotlib.pyplot as plt

使用Pycharm画图,可以在python/ipython shell终端执行,但是不能在Pycharm上运行,如下图:


解决方案:
先卸载matplotlib 2.2.0:pip uninstall matplotlib
然后安装matplotlib 2.1.2:pip install matplotlib==2.1.2

参考链接:
https://intellij-support.jetbrains.com/hc/en-us/community/posts/360000097690-AttributeError-module-matplotlib-has-no-attribute-verbose-

上一篇 下一篇

猜你喜欢

热点阅读