Python出错汇总(3):No module named ‘scipy’
出错
Python绘制密度图时出错。
(其他包已经在jupyter notebook前面的代码块导入)
wy = pd.Series(np.random.normal(size = 80))
s.plot(kind = 'kde')
jupyter中运行提示:
![在这里插入图片描述](https://img-blog.csdnimg.cn/b892b3794e074ee983d10abf03f22797.png)
原因
没有安装scipy模块
解决方法
使用pip安装scipy
在DOS窗口输入:pip install scipy
![在这里插入图片描述](https://img-blog.csdnimg.cn/b286c6197c71411aafcf7e848582152a.png)
再次运行jupyter notebook的代码,就可以了。
![在这里插入图片描述](https://img-blog.csdnimg.cn/3c3bb63349184aa1a79902ab82da6dbe.png)