Various Python packages installed under Windows

Source: Internet
Author: User
Tags install matplotlib

1. Install Python, here choose 2.7 or 3.4 is OK, but recommended to use 2.7, after all, the current tutorial is mostly based on 2.7, 3.4 and 2.7 of the syntax is slightly different, in order to avoid the trouble of grammatical errors, or recommend that you use 2.7. is: https://www.python.org/downloads/

2. Download Numpy,scipy,matplotlib Three library exe, note that here is the EXE, because the use of matplotlib need to numpy support, so it is best to install NumPy and then install Matplotlib. :

    • Numpy:http://sourceforge.net/projects/numpy/files/numpy/1.9.2/
    • Scipy:http://sourceforge.net/projects/scipy/files/scipy/0.15.1/
    • Matplotlib:http://matplotlib.org/downloads.html

where NumPy and scipy do not have 32 and 64-bit differences, matplotlib need to choose 32-bit and 64-bit according to their system. Again, these three libraries must download the corresponding version of the EXE. Once the download is complete, they will automatically find the path of the python you installed before, and the next is the end of the line.

3. After the 2nd step installation is complete, you can run it on the Matplotlib examples page (http://matplotlib.org/examples/index.html) copy code, and you will see an error. Here's the mistake, there are roughly three of them:

    • Importerror:matplotlib requires Dateutil
    • Importerror:matplotlib requires pyparsing
    • No Module name Six

4. Solve the No module name six problem, the solution is very simple. Copy your installation path: Python27/lib/site-packages/scipy/lib in six.py,six.pyc,six.pyo three files to your installation path: Python27/lib/site-packages, But copy past, not yet, hint Importerror:six 1.3 or later is required; You have 1.2.0 such a problem, finally install Matplotlib Select 1.3.1. version to solve the problem

5. Solve Importerror:matplotlib requires dateutil issue first register Python, that is, run register.py, and then download Dateutil.exe, you can solve

6. Solve importerror:matplotlib requires pyparsing problem, as before, download pyparsing?2.0.3-win32-py2.7

Various Python packages installed under Windows

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.