install and uninstall several times finally put Matplotlib installed successfully, the installation process used in the various packages can be found in the following links. link http://www.lfd.uci.edu/~gohlke/pythonlibs/ Install the main reference blog http://blog.sina.com.cn/s/blog_6fb8aa0d0101qtt9.html, at the same time on their own more problems to give a solution. matplotlib installation of the official link for http://matplotlib.org/users/installing.html, no use. The following detailed documentation is adapted from the installation process for link 123 to backup. Note: The version of each installer must be consistent, here are unified with windows,32 bit,python2.7 version (it is said that the python3.* series for some of the installation package is incompatible, so chose the older python2.7 version)!!! 1, pythonhttps://www.python.org/download/ 2. Installation of matplotlib,http://matplotlib.org/downloads.html with Python counterpart version 3, for the standard version of Python, to use matplotlib, you need to install the NumPy module, see link 4 4, may also use the Msvcp.dll library, searches the net to add to the C:\windows\system32 directory by oneself. If you run the import Matplotlib.pyplot as PLT at this point, the following error may be displayed:Raise Importerror ("Matplotlib requiresdateutil")Importerror:matplotlib requires DateutilIt means you need dateutil. 5, installation dateutil,http://www.lfd.uci.edu/~gohlke/pythonlibs/#python-dateutilThe error then occurs:Raise Importerror ("Matplotlib requirespyparsing")Importerror:matplotlib requires pyparsingIt means you need pyparsing. 6, installation pyparsing,http://www.lfd.uci.edu/~gohlke/pythonlibs/#pyparsingerror occurred after installation:No Module name sixneed to install scipy 7, install scipy, see red link. then copy the six.py Six.pyc six.pyo three files from the C:\Python27\Lib\site-packages\scipy\lib to the C:\Python27\Lib\site-packages directory. then enter import Matplotlib.pyplot as PLT in the idle (Python GUI) and select the error:specific forgotten, roughly meaning that the six1.2 version of the old, in exchange for the new version, which is can go to the above red link download a high version of six. Install. 8. Enter the following code without error:Import MatplotlibImport NumPyImport scipyImport pyparsingimport Matplotlib.pyplot as Plt 9. Verify a simple exampleimport Matplotlib.pyplot as PltPlt,plot ([i])Plt.ylabel (' some numbers ')plt.show ()The results are as follows
Matplotlib Installing under Windows