How to install Numpy and matplotlib in Python (recommended), numpymatplotlib

Source: Internet
Author: User

How to install Numpy and matplotlib in Python (recommended), numpymatplotlib

How to install Numpy and matplotlib in Python (recommended)

Note:

Cp27 indicates python2.7 In the downloaded database name.

Input import pip; print (pip. pepw.tags. get_supported () in shell to get the Supported file names and versions of pip.

 ==================== Install Numpy

: Https://pypi.python.org/pypi/numpy like numpy-1.13.3-cp36-none-win_amd64.whl

After downloading the file, put it in the scripts folder under the python installation directory. If python is correctly installed, pip and easy_install should be included in this folder.

Cmd: E: \ Python \ Scripts> pip3 install numpy-1.13.3-cp36-none-win_amd64.whl

The Successfully installed numpy-1.13.3 prompt appears when the installation is successful

Finally, check whether the installation is successful. You can enter import numpy in python. If no exception is prompted, the installation is successful.

 ===================== Install matplotlib ==========================

: Https://pypi.python.org/pypi/matplotlib

Download file: matplotlib-2.1.0-cp36-cp36m-win_amd64.whl (md5)

Copy to the Scripts directory of python, run cmd to enter the Scripts directory, and execute:

Pip3 install matplotlib-2.1.0-cp36-cp36m-win_amd64.whl

Install numpy and matplotlib

Install numpy

1. Download python and configure environment variables.

2. Install pip: Find easy_install.exe in the scriptsinstallation directory of python.

3. Download the corresponding numpy: ipv3.5.0, so my next is the numpy-1.11.0-cp35-none-win_amd64.whl (md5, pgp) (here cp35 represents the version, amd64 said 64-bit)

4. Run cmd cd to the folder where the numpy-1.11.0-cp35-none-win_amd64.whl is placed, and enter pip install numpy-1.11.0-cp35-none-win_amd64.whl To See That numpy is installed successfully.

If You are using pip version 7.1.2 and however version 8.1.2 is available errors occur during this process, first enter the easy_install directory such as D: \ Python27 \ Scripts

Then, run the command easy_install.exe pip = 8.1.2 to complete the installation.

Install matplotlib

1. Download The matplotlib: https://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-1.5.0/windows/

I got a matplotlib-1.5.0-cp35-none-win_amd64.whl.

2. As above, cmd cd to the folder where the matplotlib-1.5.0-cp35-none-win_amd64.whl is placed, enter pip installmatplotlib-1.5.0-cp35-none-win_amd64.whl to see matplotlib installed successfully.

The method (recommended) for installing Numpy and matplotlib in Python above is all the content that I have shared with you. I hope to give you a reference and support for more.

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.