CentOS 7.2安装pip

CentOS 7.2默认安装的python版本为python2.7.5,我的系统里面默认是没有安装pip 的,搜了下网上各路大侠的解决办法,如下:

使用yum安装python-pip,但是报错,说没有可用的包。

image

安装epel源

[root@sishen yum.repos.d]# yum install -y epel-release

然后在执行

[root@sishen yum.repos.d]# yum install -y python-pip

image

至此,pip2安装完成!

原文地址:https://www.cnblogs.com/zd520pyx1314/p/7935671.html