文章内容

2018/7/4 22:59:51,作 者: 黄兵

Cannot install python-pip with yum

I am trying to install python-pip in a centos7 docker container, but I think I may be missing some package or something.

[root@aasdfasdfa /]# yum -y install python-pip
Loaded plugins: fastestmirror, ovl
base                                                                                                                                                                          | 3.6 kB  00:00:00     
extras                                                                                                                                                                        | 3.4 kB  00:00:00     
updates                                                                                                                                                                       | 3.4 kB  00:00:00     
updates/7/x86_64/primary_db                                                                                                                                                   | 8.4 MB  00:00:31     
Loading mirror speeds from cached hostfile
 * base: repos.lax.quadranet.com
 * extras: mirrors.unifiedlayer.com
 * updates: mirrors.usc.edu
No package python-pip available.
Error: Nothing to do
What do I need to run before yum -y install python-pip so that it will install correctly. Note that easy_install is also broken so thats not an option.

You have to enable the EPEL repo, use:

yum --enablerepo=extras install epel-release

This command will install the correct EPEL repository for the CentOS version you are running.

After this you will be able to install python-pip.

参考资料:
Cannot install python-pip with yum
分享到:

发表评论

评论列表