您的位置:首页 > 编程语言 > PHP开发

ImportError: No module named matplotlib.pyplot

2016-11-29 14:59 609 查看
转自:https://my.oschina.net/letiantian/blog/339901

sklearn的网站上不去,准备编译一下在github中的文档:

$ cd scikit-learn-master/doc
$ make html


出现以下错误:

Exception occurred:
File "/home/sunlt/Downloads/scikit-learn-master/doc/sphinxext/gen_rst.py", line 850, in generate_file_rst
import matplotlib.pyplot as plt
ImportError: No module named matplotlib.pyplot
The full traceback has been saved in /tmp/sphinx-err-7pCJ3k.log, if you want to report the issue to the developers.


用pip安装:
$ sudo pip install matplotlib


依然是这个错误,

使用下面的命令安装,就没有问题了:
$ sudo apt-get install python-matplotlib
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  importerror python