Python出错汇总(2):No module named ‘matplotlib’
出错
Python在绘制图时,出错。
import matplotlib.pyplot as plt
%matplotlib inline
s = pd.Series(np.random.normal(size = 10))
s.plot()
jupyter中运行提示:
原因
没有安装matplotlib模块
解决方法
使用pip安装matplotlib
在DOS窗口输入:pip install matplotlib
再次运行jupyter notebook的代码,就可以了。