Linux offline install PIP and NumPy

Source: Internet
Author: User

Let's start by explaining what happens to the PIP online installer.

For example:

Run pip install NumPy

1. Pip will download the wheel installation package that matches its own machine first

Mine is NUMPY-1.12.1-CP27-CP27MU-MANYLINUX1_X86_64.WHL.

2. PIP will run the following command to install the wheel installation package

Pip Install NUMPY-1.12.1-CP27-CP27MU-MANYLINUX1_X86_64.WHL

3. The PIP command above invokes the wheel command to install the wheel installation package

Wheel Unpack NUMPY-1.12.1-CP27-CP27MU-MANYLINUX1_X86_64.WHL

CD numpy-1.12.1

Wheel Install

In many cases we need to install the software on the LAN, then you can download the installation package in advance, then manually install

First, install the wheel

1.1 Download Unzip Package

wget https://pypi.python.org/packages/a7/37/947b4329c4a3c72093b6c8e9b4be8c7f10c32dbb78848d3a234ce01c059d/ Wheel-0.30.0a0.tar.gz#md5=aa1145d48e4da2f9415eac2d51468a83

TAR-ZXVF wheel-0.30.0a0.tar.gz

CD wheel-0.30.0a0

1.2 Installing Wheel

Python setup.py Build

Python setup.py Install

Second, install PIP (similar to installing wheel)

1.1 Download Unzip Package

wget https://pypi.python.org/packages/11/b6/abcb525026a4be042b486df43905d6893fb04f05aac21c32c638e939e447/ Pip-9.0.1.tar.gz#md5=35f01da33009719497f01a4ba69d63c9

TAR-ZXVF pip-9.0.1.tar.gz

CD pip-9.0.1 #会发现当前目录下有个setup. py

1.2 Installing PIP

Python setup.py Build

Python setup.py Install

Third, installation NumPy

PIP list to see if a history version has been NumPy, you can uninstall it with pip uninstall NumPy and then install the latest version

1.1 Download Unzip Package

wget https://pypi.python.org/packages/f9/d5/f24f86b51298f171826a398efdd64b5214b687a28a2f05ff736b1505b1b2/ Numpy-1.12.1-cp27-cp27mu-manylinux1_x86_64.whl#md5=471f740f61f7fba1a1a1e526bf710c49

1.2 Installing NumPy

Pip Install NUMPY-1.12.1-CP27-CP27MU-MANYLINUX1_X86_64.WHL

Or you can use wheel to decompress and install.

Linux offline install PIP and NumPy

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.