1. Install PYTHon3 in Linux

A, prepare the compile environment (if the environment is not correct, you may encounter various problems, such as wget can not download HTTPS linked files)

2 2 yum groupinstall ‘Development Tools’ yum install zlib-devel bzip2-devel openssl-devel ncurses-devel 2 下载 Python3.6 code package

Wget HTTP: / / https://www.python.org/ftp/python/3.6.3/Python-3.6.3.tar.xz

There is a README file in the installation package, Xz CD python-3.6.3./configure –prefix=/usr/local/python3 make && make install

Ln -s/usr/local/python3 / bin/python3.6 / usr/local/bin/python3 installation was successful!

Ignoring ensurepIP failure: PIP 7.1.2 requires SSL/TLS

This is why oenSSL is not installed or upgraded:

Yum install openssl-devel python3.6:

The final result is as follows:

Pip-7.12 and SetupTools have been successfully installed!

There is no error in pip3 and PIP!

Do soft chain:

Ln -s/usr/local/python3 / bin/pip3.6 / usr/local/bin/PIP PIP upgrade to the latest version:

pip install –upgrade pip

PIP installation successful!

Note: –no-check-certificate indicates that the certificate is not checked during installation. If the certificate is not added, it may not be installed.

2. The installation package

Requests package:

PIP Install Requests pyQuery package

PIP install pyQuery pymysql

pip install pymysql

Reference: https://www.cnblogs.com/feng18/p/5854912.html