转自: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.
$ sudo pip install matplotlib
$ sudo apt-get install python-matplotlib