Python Installation matplotlib,six,dateutil,pyparsing Complete process

Source: Internet
Author: User

Because matplotlib needs to rely on many other scientific computing third-party libraries, one installation is required.

1, install Matplotlib

Download directly from the website: http://matplotlib.sourceforge.net/

I found an. exe after the installation is complete, the direct import matplotlib,

The error is as follows:

And then we're installing six.

2, install six

Official website Download: http://www.pythonhosted.org/six/

I downloaded the six-1.8.0 source package, after decompression, to unzip the directory, command line execution of the direct Python setup.py install can be completed

Import Matplotlib again later or missing library: Dateutil

3, install Dateutil

Official website Download: https://pypi.python.org/pypi/python-dateutil/1.4.1

I downloaded the python-dateutil-2.3 source installation also to the decompression directory, execute Python setup.py install can also be installed successfully,

Continue execution: import matplotlib; still error: Missing pyparsing library

4, install pyparsing

official website Download http://pyparsing.wikispaces.com/Download+and+Installation
Installation method and the same as before decompression, direct python setup.py install, installation complete = =
Still import matplotlib, still missing: NumPy:

5, install NumPy

Download http://www.numpy.org/

I directly download the NumPy 1.9.1, the old way to install, the results in the installation, the error:

First encounter this error, after searching the data on the Internet, found that its own C++/C compiler VC Setup problem,

First go to the Python directory and find the lib-->distutilsmsvc9compiler.py file:

Need to be modified:

Query_vcvarsall (VERSION, Plat_spec)

This line, if you install VS2012, change version directly to 11.0 if VS2013 is changed to 12.0

After that, you find:

Mfinfo = Self.manifest_get_embed_info (Target_desc, Ld_args)

This line, change directly to:

Mfinfo = None

Execute the python setup.py install again NumPy success:

Execute import matplotlib ok! again

A running result:

Python installation matplotlib,six,dateutil,pyparsing complete process

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.