Python, NumPy and Matplotlib installation methods under the WINDOWS64 system

Source: Internet
Author: User

This afternoon want to run RNN network with Python, the result code in the import package NumPy did not error, but in the use of the function of the times wrong, because the small part is also a novice, only learn the basic syntax of Python, and did not use a third party package, installed an afternoon has not been ready, this thought command line bad use, But it really solves the problem,

First, install Python

Step: Go to the Python website to download the MSI installation package for your computer, then run the installation, choose to install the components, make sure that all the components are ticked. Pay particular attention to the option of PIP and

Add Python.exe to Path, then click Next multiple times to complete the installation.

Verify that the installation was successful: Open the Run, enter the CMD carriage return, enter the Python carriage return, you can see into Python. If the error is not found, the Python path may not be added to the system environment variable path.

Second, installation NumPy

Step: 1, first upgrade the Python pip, in the cmd input "pip install Pip–-upgrade", to be upgraded to complete can see success hint,

2. Download Wheel of NumPy build for AMD64 on Windows, download under http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy NumPy

NUMPY-1.10.4+MKL-CP27-CP27M-WIN_AMD64.WHL, placed in the Python installation directory under the scripts directory (for input convenience),

3. Install with PIP install NUMPY-1.10.4+MKL-CP27-CP27M-WIN_AMD64.WHL

Test method: Enter import NumPy as NP on the Python command line will no longer error,

Third, installation matplotlib

Step: You can install the Matplotlib drawing library by using the PIP install matplotlib command.

Test method: Draw a line through the code below,

From matplotlib import Pyplot
Pyplot.plot ([1, 2, 3, 4], [1, 2, 3, 4])
Pyplot.show ()

So the installation is done,

Python, NumPy and Matplotlib installation methods under the WINDOWS64 system

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.