Python----matplotlib module is installed under Windows

Source: Internet
Author: User

This thing over and over the night, here detailed description of how to install, it will certainly help everyone. First of all, the default is Python, this from the official website is basically no difficulty.

(1) Installation of Setuptools

Why do you say this first, all the WHL files in the back to use this installation. Basically not a few tutorials first introduced this, here say a little bit, convenient small white use.

    1. We have setuptools 0.6c11. Other version is not no, because this in the pypi above directly have EXE file, anyway is convenient. Address:https://pypi.python.org/pypi/setuptools/0.6c11.
    2. Download setuptools-0.6c11.win32-pyx.x.exe. Note that this should only be used for python2.
    3. Download the installation EXE file.
    4. Set environment variables, this is Baidu bar. Remember to add ... \python27\scripts this path to path.
    5. Open the CMD test. If it shows, the installation is successful.
    6. Install the WHL file later and add the file name directly after the Easy_install.

Figure 1

(2) Installation of Matplotlib

You can either find the download page download on the official website, or you can search and download the exe file directly on the sourceforge. Address:http://sourceforge.net/projects/matplotlib/files/matplotlib/.

(3) Installation of NumPy

This searches and downloads exe files directly on the sourceforge. Address:http://sourceforge.net/projects/numpy/files/NumPy/.

(4) installation of Dateutil, pyparsing,scipy and six

These are all downloaded in the address:http://www.lfd.uci.edu/~gohlke/pythonlibs/ . According to the index to find the corresponding link, download the inside WHL file (such as file pyparsing?2.0.5?py2.py3?none?any.whl). Then follow the method in (1) to install the WHL file with Setuptools, generally see "Finished processing dependencies for python-xxxxxx" This sentence indicates that the installation was successful. Note here: Most of the downloaded files are like the example above, the file name contains the version number and other information, it is better to rename, such as Python_dateutil-2.4.2-py2.py3-none-any. WHL change to PYTHON_DATEUTIL.WHL, and cmd in the command line input Easy_install pythone_dateutil, in order to ensure that there will be no unnecessary errors.

After installing these, if there is a "No module named XXX" error prompt, we re-address:http://www.lfd.uci.edu/~gohlke/pythonlibs/ Download and then install.

In addition, after installing SCIPY, you need to copy The six.py,six.pyc,six.pyo three files in the \python27\lib\site-packages\scipy\lib. the. \python27\lib\site-packages directory.

(5) Enjoy the joy of victory.

Python----matplotlib module is installed under Windows

Related Article

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.