Python learning-windows Installing Python and Matplotlib.pyplot package

Source: Internet
Author: User
Tags windows x64 install matplotlib

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:

    • Windows X64
    • python2.7.5

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.