Centos下安装pip命令
1、报错内容
# pip
-bash: pip: 未找到命令
或者
- bash: pip: command not found
2、解决
1、如果没有epel源下载阿里的epel源
# wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
2、安装pip
# yum -y install python-pip
3、验证
# pip list
backports.ssl-match-hostname (3.5.0.1)
chardet (2.2.1)
configobj (4.7.2)
decorator (3.4.0)
iniparse (0.4)
ipaddress (1.0.16)
IPy (0.75)
kitchen (1.1.1)
langtable (0.0.31)
perf (0.1)
pip (8.1.2)
policycoreutils-default-encoding (0.1)
pycurl (7.19.0)
pygobject (3.22.0)
pygpgme (0.3)
pyliblzma (0.5.3)
python-augeas (0.5.0)
python-dmidecode (3.10.13)
python-linux-procfs (0.4.9)