致访客
感谢各位一年多的陪伴,因内容调整,本站将于近日迁移到新域名并不再更新主要内容。

MENU

Install pip3/pip in Centos

• February 11, 2022 • π

致访客
感谢各位一年多的陪伴,因内容调整,本站将于近日迁移到新域名并不再更新主要内容。
特此通知。
  1. python2
  2. Installation source
yum -y install epel-release

Install pip

yum install python-pip
  1. 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.

  1. The installation of pip3 in
  2. python3 comes with pip3, so you only need to add the soft link of pip3.

20190909225738730121.png

  1. 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~~

151252