美文网首页
centos7 安装python-pip

centos7 安装python-pip

作者: 土豆特别想爬山 | 来源:发表于2017-12-05 00:01 被阅读229次

在使用centos7的软件包管理程序yum安装python-pip的时候会报一下错误:

No package python-pip available.

这是因为像centos这类衍生出来的发行版,他们的源有时候内容更新的比较滞后,或者说有时候一些扩展的源根本就没有。

所以在使用yum来search  python-pip的时候,会说没有找到该软件包。因此为了能够安装这些包,需要先安装扩展源EPEL。

EPEL(http://fedoraproject.org/wiki/EPEL) 是由 Fedora 社区打造,为 RHEL 及衍生发行版如 CentOS、Scientific Linux 等提供高质量软件包的项目。

首先安装epel扩展源:

yum -y install epel-release

然后安装python-pip:

yum -y install python-pip

最后清理缓存:

yum clean all

相关文章

网友评论

      本文标题:centos7 安装python-pip

      本文链接:https://www.haomeiwen.com/subject/loafixtx.html