Importerror: No module named matplotlib. pyplot

Source: Internet
Author: User
Tags install matplotlib
Sklearn's website does not go. Prepare to compile the documents on GitHub:

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



The following error occurs:

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



Install with PIP:
$ sudo pip install matplotlib



Still this error,

Run the following command to install the SDK:
$ sudo apt-get install python-matplotlib







Importerror: No module named matplotlib. pyplot

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.