本文共 2705 字,大约阅读时间需要 9 分钟。
一台新服务器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 problemYou could try running: rpm -Va --nofiles --nodigest
使用--skip-broken也不行
然后:查到要用epel安装扩展包
yum -y install epel-release
接下来
yum -y install python-pip
OK~
EPEL是fedora项目中linux企业版扩展包
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, (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赞助的项目,用来孵化新技术,免费软件组织成员。The Fedora Project is a global partnership of free software community members. The Fedora Project is sponsored by , which invests in our and resources to encourage collaboration and incubate innovative new technologies. Some of these technologies may later be integrated into Red Hat products. They are and produced under a from inception, so other free software communities and projects are free to study, adopt, and modify them.
Read an to learn more about our mission, our community, our governance, and what makes Fedora unique. You can also learn about our and upon which the project is built. We also have information relating to our , and the for our technical work.
转载地址:http://vhbws.baihongyu.com/