In the previous article I want to use matplotlib, helpless has not been installed, in unloading and loading and unloading, after repeated, finally installed.
Beginner python, first installed numpy, not much more complex, the need for friends can directly http://sourceforge.net/projects/numpy/files/NumPy/in here to choose the appropriate self-download.
Down on the right to say Matplotlib, I am Win32, Installed is python3.4, on my own personal experience and share with you:
1. Download Matplotlibl:
http://sourceforge.net/projects/matplotlib/files/matplotlib/
Choose the right download for yourself here.
Then command line input: Import matplotlib
Error occurred: No module name Six
Indicates the need to install scipy.
2. Install scipy:
Http://sourceforge.net/projects/scipy/?source=typ_redirect
Choose the right one after the installation, after installation will python\lib\site-packages\scipy\lib in the six.py, SIX.PYC, six.pyo three files copy to Python\lib\ The Site-packages directory.
command line input after completion: import matplotlib
Error occurred: Matplotlib requires Dateutil
Indicates the need to install Dateutil.
3. Install Dateutil:
https://pypi.python.org/pypi/python-dateutil/2.4.2
I chose python-dateutil-2.4.2.tar.gz (MD5,PGP), after the download I encountered a problem, such as:
I looked for Niang to check a lot of ways, are not feasible, finally I think of a count, really feasible, is to directly extract the files to ..., you can. After the CMD is entered into the development directory, Python setup.py install can complete the installation. This is to ensure that the environment variable settings for Python are not a problem.
command line input after completion: import matplotlib
Error occurred: Matplotlib requires pyparsing
Indicates the need to install pyparsing
4. Install pyparsing:
http://sourceforge.net/projects/pyparsing/files/pyparsing/pyparsing-2.0.3/
Select the appropriate. exe file to download and install it directly after download.
Then there's no problem.
You can verify after you have completed all:
Import matplotlib Import NumPy Import scipy Import pyparsing Import Matplotlib.pyplot as Pltplt.plot ([3,4,5]) Plt.ylabel ('numbers') ) plt.show ()
Get:
This will make the installation successful!
Also wish you all can quickly install it, it does not fit too torture people, in a word, earnest the most important ~
Here, because of the time, some of the problems I encountered did not tell you, in short, what problems can also ask me, in case I met? Oh, yes.
Installation of matplotlib under Windows