首页 > 其他 > 详细

ImportError: No module named matplotlib.pyplot

时间:2014-11-02 12:34:38      阅读:513      评论:0      收藏:0      [点我收藏+]
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: No module named matplotlib.pyplot

原文:http://my.oschina.net/letiantian/blog/339901

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!