Pip 介绍
pip 是一个安装和管理 Python 包的工具,python 安装包的工具有 easy_install, setuptools, pip,distribute 。使用这些工具都能下载并安装 django 。,而 pip 是 easy_install 的替代品。在 CPython 直译器,pypy 直译器,可以很好地工作。
1 、直接安装 pip,我们发现会出现错误

1
2
3
4
5
6
7
8

 [root@localhost yum.repos.d]# yum install -y pip-python
已载入插件外挂:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: mirrors.aliyun.com
 * epel: mirrors.aliyun.com
 * extras: mirrors.aliyun.com
 * updates: mirrors.aliyun.com
没有可用站群软件包 pip-python 。

错误:无须任何处理
解决方法:
2 、要先安装 epel-release,,这个包包含了 EPEL 源的 gpg 金钥和站群软件源资讯,该站群软件包会自动配置 yum 的站群软件仓库

1

[root@localhost yum.repos.d]#yum -y install epel-release

 
3 、执行成功之后,再次执行 yum install python-pip

1

[root@localhost yum.repos.d]#yum -y install python-pip