Install numpy, matplotlib, and numpymatplotlib

Source: Internet
Author: User

Install numpy, matplotlib, and numpymatplotlib

Installing some extension packages in python makes the function more powerful. I encountered some minor problems when I first started the installation. Now I want to record it so that I can forget it later. You can refer to it.

Method 1: offline Installation

1, first download Numpy, MatplotLib these two libraries, web site https://www.lfd.uci.edu /~ Gohlke/pythonlibs/, my is python3.5 64bit, so the download is the numpy-1.13.3 + mkl-cp35-cp35m-win amd64.whl

If the version is incorrect, an error is reported during installation.

  

2, cmd, then cd to pip install numpy-1.13.3 + mkl-cp35-cp35m-win amd64.whl path, Through pip install numpy-1.13.3 + mkl-cp35-cp35m-win amd64.whl installation (Supplement: The premise is that pip has been installed, and set the environment variables. pip is in the scripts directory of the python installation directory)

3. Check whether the installation is successful after installation.

Install matplotlib.

Method 2: Online installation (recommended and easy to use)

1. Make sure pip has been installed.

2, because the direct use of foreign pip image installation, may fail, then we want to use domestic pip image, we recommend Tsinghua University https://pypi.tuna.tsinghua.edu.cn/simple

Then cmd, then pip install-I https://pypi.tuna.tsinghua.edu.cn/simple numpy, so that the image from Tsinghua side to install the numpy library ..

If you want to use pip more conveniently next time, create a pip directory in the user directory, for example, C: \ Users \ xx \ pip. Create the pip. ini file. The content is as follows:

[global] index-url = https://pypi.tuna.tsinghua.edu.cn/simple

 

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.