Centos下安装pip失败或新装
Centos安装pip失败:
[root@localhost /]# yum -y install pip
已加载插件:fastestmirror
Repodata is over 2 weeks old. Install yum-cron? Or run: yum makecache fast
base | 3.6 kB 00:00:00
extras | 3.4 kB 00:00:00
updates | 3.4 kB 00:00:00
(1/4): base/7/x86_64/group_gz | 166 kB 00:00:01
(2/4): extras/7/x86_64/primary_db | 200 kB 00:00:01
(3/4): updates/7/x86_64/primary_db | 5.0 MB 00:00:11
(4/4): base/7/x86_64/primary_db | 6.0 MB 00:00:12
Determining fastest mirrors
没有可用软件包 pip。
错误:无须任何处理
解决方法:
sudo yum -y install epel-release
然后在进行安装pip
yum -y install python-pip
ok,成功!