python-libs-2.6.6-66.el6_8.x86_64 is a duplicate with python-libs-2.6.6-64.el6.x86_64

时间:2022-11-19 02:54:30

一台新服务器centos6.7安装pip。

163的centos源并没有这个,用了一个python源,版本不兼容

报错:

Error: Package: python-argparse-1.3.0-48.8.x86_64 (python)
           Requires: python = 2.6
           Installed: python-2.6.6-66.el6_8.x86_64 (@updates)
               python = 2.6.6-66.el6_8
           Available: python-2.6.6-64.el6.x86_64 (base)
               python = 2.6.6-64.el6
Error: Package: python-setuptools-28.3.0-86.1.x86_64 (python)
           Requires: update-alternatives
Error: Package: python-setuptools-28.3.0-86.1.x86_64 (python)
           Requires: python-xml
 You could try using --skip-broken to work around the problem
** Found 1 pre-existing rpmdb problem(s), 'yum check' output follows:
python-libs-2.6.6-66.el6_8.x86_64 is a duplicate with python-libs-2.6.6-64.el6.x86_64

或者报错:

Error: Package: python-pip-9.0.1-1.2.x86_64 (python)

           Requires: python-xml
Error: Package: python-argparse-1.3.0-48.8.x86_64 (python)
           Requires: python = 2.6
           Installed: python-2.6.6-66.el6_8.x86_64 (@updates)
               python = 2.6.6-66.el6_8
           Available: python-2.6.6-64.el6.x86_64 (base)
               python = 2.6.6-64.el6
Error: Package: python-pip-9.0.1-1.2.x86_64 (python)
           Requires: update-alternatives
 You could try using --skip-broken to work around the problem

 You could try running: rpm -Va --nofiles --nodigest


使用--skip-broken也不行

然后:查到要用epel安装扩展包

yum -y install epel-release

接下来

yum -y install python-pip

OK~

EPEL是fedora项目中linux企业版扩展包

What is Extra Packages for Enterprise Linux (or EPEL)?

Extra Packages for Enterprise Linux (or EPEL) is a Fedora Special Interest Group that creates, maintains, and manages a high quality set of additional packages for Enterprise Linux, including, but not limited to, Red Hat Enterprise Linux (RHEL), CentOS and Scientific Linux (SL), Oracle Linux (OL).

EPEL packages are usually based on their Fedora counterparts and will never conflict with or replace packages in the base Enterprise Linux distributions. EPEL uses much of the same infrastructure as Fedora, including buildsystem, bugzilla instance, updates manager, mirror manager and more.

Learn more about EPEL in the following pages:

fedora是redhat赞助的项目,用来孵化新技术,免费软件组织成员。

What is the Fedora Project?

The Fedora Project is a global partnership of free software community members. The Fedora Project is sponsored by Red Hat, which invests in our infrastructure and resources to encourage collaboration and incubate innovative new technologies. Some of these technologies may later be integrated into Red Hat products. They are developed in Fedora and produced under a free and open source license from inception, so other free software communities and projects are free to study, adopt, and modify them.

Read an overview to learn more about our mission, our community, our governance, and what makes Fedora unique. You can also learn about our vision and core values — the foundations upon which the project is built. We also have information relating to our user base, and the objectives for our technical work.