Recently studied in the "machine Learning Combat" a book, the second chapter of the time to use the Natplotlib drawing, then began to install Matplotlib. All of the installation packages used in this article can be found in the links at the end of the text.
First from the Matplotlib website to download the installation package http://matplotlib.org/downloads.html, choose the right version of Python, the author uses python2.7, so downloaded Matplotlib-1.4.2.win32-py2.7.exe, as shown in.
After the download is complete click Install, open the Python shell input import matplotlib, found an error. Tip No module named Sixas shown in:
The author consulted the relevant information, found that there are divergent opinions, summed up a more reliable installation sequence and methods for their own future reference, the main reference link for this blog http://blog.sina.com.cn/s/blog_5d7295010101ku7o.html.
The order is as follows:
1, the installation of Matplotlib, this step has just been completed.
2, install scipy.
First download the appropriate SCIPY installation package from SourceForge, I downloaded the scipy-0.15.1-win32-superpack-python2.7.exe according to my Python version. The installation was successful.
3, install Dateutil.
I find a lot of information, helpless did not find EXE installation package, so in the Python official website downloaded dateutil Source: Https://pypi.python.org/pypi/python-dateutil. After decompression, install via setup.py. But the hint "Importerror:no module named Setuptools", check the data found also need Setuptools module, see blog: http://blog.sina.com.cn/s/blog_ 3fe961ae0100zgav.html solution is also very simple, install this module is good. This is also a once-in-a-time approach, the installation of third-party modules can be a lot more convenient. After the given link https://pypi.python.org/pypi/setuptools downloaded ez_setup.py This file to run, the script will automatically determine the Python version, automatically download, install. Then install Dateutil on the line. note here that the command line should be opened in the root directory of the Dateutil source code, or the missing file will not be installed successfully .
4, install pyparsing.
It is also possible to download the appropriate version directly from the SourceForge, http://sourceforge.net/projects/pyparsing/files/pyparsing/pyparsing-2.0.3/ The author selected Pyparsing-2.0.3.win32-py2.7.exe, installation. 5, Test.
Open the Python shell and enter
Display as shown without error following successful installation of Matplotlib
Related information download link: Http://pan.baidu.com/s/1EpSHC
[Python] records the experience of installing Matplot under Windows