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