Citation: Python comes with a lot of library files, where matplotlib can make good graphical features like Matlab and R, and here's how to install this package, because there are a lot of mistakes when you install it.
Environment:
Note: Although the computer is a 64-bit system, the computer-mounted Python is still 32-bit.
1 python download and install1.1 Python Download
First download python2.7.5:https://www.python.org/downloads/windows/
Or go to my csdn library to download, address: http://download.csdn.net/detail/dream_angel_z/8735597
1.2 Installing Python
Install Python, directly click on the downloaded software, set up the Python installation path, always click Next and then finish, very simple.
2 Install the appropriate package
Below to install the Matplotlib package, can be downloaded to my CSDN library, all dependent packages are placed inside.
: http://download.csdn.net/detail/dream_angel_z/8735711
1.1 First install matplotlib
Direct installation is, because Python is installed, the system will automatically find the Python installation path, and then install to the appropriate location, here is not.
2.2 Installing Dateutil and pyparsing
Execute from matplotlib.pyplot Import * should report missing dateutil and pyparsing errors, then install Dateutil and pyparsing
2.3 Installing NumPy
should also be error, lack of numpy, then install NumPy
2.4 Installing six.py
Finally, there will be an error, lack of six.py
At this time, unzip the six-1.4.1.tar.gz in the download file, find the six.py file inside, and then copy to the Python installation directory. Under the \python27\lib\site-packages\dateutil.
3 Test:
fromimport *
Test successful, ok!
Python learning continues to update, welcome to the column of the creator of the project ...
Python learning-windows Installing Python and Matplotlib.pyplot package