Install pip3 under CentOs

wget --no-check-certificate https://pypi.python.org/packages/source/p/pip/pip-8.0.2.tar.gz#md5=3a73c4188f8dbad6a1e6f6d44d117eeb 

tar -zxvf pip-8.0.2.tar.gz
cd pip-8.0.2
python3 setup.py build
python3 setup.py install

python3 switches the corresponding commands according to your local environment, here my python3 command is softly connected to my Python environment

After the installation is successful, you can execute

/usr/local/python/bin/pip3

Check whether the installation is successful.
After the installation is successful, create a soft connection

ln -s /usr/local/python/bin/pip3 /usr/bin/pip3

Guess you like

Origin blog.csdn.net/qq_14920377/article/details/86492926