Install Pip and Setuptools on Linux

Source: Internet
Author: User

After all, the rich third-party library is the advantage of Python, in order to more easily install third-party libraries, using the PIP command, we need to do the appropriate installation.

1. Pre-installation Setuptools required before PIP installation

The command is as follows:

wget--no-check-certificate  HTTPS://PYPI.PYTHON.ORG/PACKAGES/SOURCE/S/SETUPTOOLS/SETUPTOOLS-19.6.TAR.GZ#MD5 =C607DD118EAE682C44ED146367A17E26TAR-ZXVF setuptools-19.6.tar.gzcd Setuptools-19.6python3 setup.py buildpython3 setup.py Install

If the front does not decorate the environment, it will be hard to force a bit:

Error: Runtimeerror:compression requires the (missing) zlib module

We need to install the Zlib-devel package in Linux for support.

Yum Install Zlib-devel

A recompile installation is required for the python3.5.

CD Python3.6.1make && make install

It's a long process of compiling and installing.

Reinstall Setuptools

Python3 setup.py buildpython3 setup.py Install

2. Install Pip

The command is as follows:

wget--no-check-certificate  https://pypi.python.org/packages/source/p/pip/pip-8.0.2.tar.gz#md5= 3A73C4188F8DBAD6A1E6F6D44D117EEBTAR-ZXVF pip-8.0.2.tar.gzcd pip-8.0.2python3 setup.py buildpython3 setup.py Install if there is no accident, PIP installation is complete.

If the environment is not well, you will encounter a kind of error:

PIP3 Install Paramiko

To report this mistake.

PIP is configured with locations that require TLS/SSL and however the SSL module in Python are not available.

Then start doing the following

Yum Install Opensslyum install OPENSSL-DEVELCD python3.6.1make && make install

Install Pip and Setuptools on Linux

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.