- Installation source
yum -y install epel-release
yum install python-pip
- Upgrade the installed pip
pip install --upgrade pip
At this point, the pip installation is completed, that is, there is pip in the /usr/bin directory, but note that it is under python2.
- The installation of pip3 in
- python3 comes with pip3, so you only need to add the soft link of pip3.
- There is pip3 in the /usr/bin directory of the previously installed python3 (create a soft link)
ln -s /usr/local/python3/bin/pip3 /usr/bin/pip3
At this point, both pip and pip3 are available~~