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
时间: 2024-10-26 07:06:37