目录

Install Python3-pip

Operation System

CentOS 7.6 (64 bits)

Requirements

Install Dependencies

> yum -y install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel

Install setuptools

> wget https://files.pythonhosted.org/packages/12/68/95515eaff788370246dac534830ea9ccb0758e921ac9e9041996026ecaf2/setuptools-53.0.0.tar.gz
> tar -zxvf setuptools-53.0.0.tar.gz
> rm -f setuptools-53.0.0.tar.gz
> cd setuptools-53.0.0
> python setup.py build
> python setup.py install

Install pip

> wget https://files.pythonhosted.org/packages/b7/2d/ad02de84a4c9fd3b1958dc9fb72764de1aa2605a9d7e943837be6ad82337/pip-21.0.1.tar.gz
> tar -zxvf pip-21.0.1.tar.gz
> rm -f pip-21.0.1.tar.gz
> cd pip-21.0.1
> python setup.py build
> python setup.py install
 
# redirect link
> mv /usr/bin/pip /usr/bin/pip.bak
> ln -s /usr/local/python3.7.4/bin/pip3 /usr/bin/pip
 
# To check the version
> pip --version