解決CentOS7-python-pip安裝失敗
阿新 • • 發佈:2017-12-02
pip安裝 解決CentOS7-python-pip安裝失敗
Pip介紹
pip 是一個安裝和管理 Python 包的工具,python安裝包的工具有easy_install, setuptools, pip,distribute。使用這些工具都能下載並安裝django。,而pip是easy_install的替代品。在CPython解釋器,pypy解釋器,可以很好地工作。
1、直接安裝pip,我們發現會出現錯誤
[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的軟件倉庫
[root@localhost yum.repos.d]#yum -y install epel-release
3、執行成功之後,再次執行yum install python-pip
[root@localhost yum.repos.d]#yum -y install python-pip
解決CentOS7-python-pip安裝失敗