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
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
本文标题:#AttributeError: module 'mat
本文链接:https://www.haomeiwen.com/subject/tjnefftx.html
网友评论