安装pip模块python-pip报错

命令:yum install -y python-pip

错误一:提示No package python-pip available.Error: Nothing to do

解决:

a、yum -y install epel-release 

b、rpm -ivh http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm

错误二:提示以下报错信息(用于python2.6但是系统python版本是2.7)

Error: Package: python-pip-7.1.0-1.el6.noarch (epel)
           Requires: python(abi) = 2.6
           Installed: python-2.7.5-34.el7.x86_64 (@anaconda)
               python(abi) = 2.7
               python(abi) = 2.7
           Available: python-2.7.5-76.el7.x86_64 (base)
               python(abi) = 2.7
               python(abi) = 2.7
           Available: python-2.7.5-77.el7_6.x86_64 (updates)
               python(abi) = 2.7
               python(abi) = 2.7
           Available: python34-3.4.8-1.el6.i686 (epel)
               python(abi) = 3.4
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

解决:

yum clean all
rpm --rebuilddb
yum update

然后删掉之前的epel-release:yum remove epel-release

重新安装:yum -y install epel-release

再执行命令:yum install -y python-pip

 

 

你可能感兴趣的:(python,安装,错误)