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.
- 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.
- Download setuptools-0.6c11.win32-pyx.x.exe. Note that this should only be used for python2.
- Download the installation EXE file.
- Set environment variables, this is Baidu bar. Remember to add ... \python27\scripts this path to path.
- Open the CMD test. If it shows, the installation is successful.
- 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