[[email protected] ~]# yum install python-pip
已加载插件:fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.njupt.edu.cn
* epel: mirrors.tongji.edu.cn
* extras: mirrors.cqu.edu.cn
* updates: mirrors.njupt.edu.cn
正在解决依赖关系
--> 正在检查事务
---> 软件包 python2-pip.noarch.0.8.1.2-6.el7 将被 安装
--> 正在处理依赖关系 python-setuptools,它被软件包 python2-pip-8.1.2-6.el7.noarch 需要
--> 正在检查事务
---> 软件包 python-setuptools.noarch.0.0.9.8-7.el7 将被 安装
--> 正在处理依赖关系 python-backports-ssl_match_hostname,它被软件包 python-setuptools-0.9.8-7.el7.noarch 需要
--> 正在检查事务
---> 软件包 python-backports-ssl_match_hostname.noarch.0.3.5.0.1-1.el7 将被 安装
--> 正在处理依赖关系 python-ipaddress,它被软件包 python-backports-ssl_match_hostname-3.5.0.1-1.el7.noarch 需要
--> 正在处理依赖关系 python-backports,它被软件包 python-backports-ssl_match_hostname-3.5.0.1-1.el7.noarch 需要
--> 正在检查事务
---> 软件包 python-backports.x86_64.0.1.0-8.el7 将被 安装
---> 软件包 python-ipaddress.noarch.0.1.0.16-2.el7 将被 安装
--> 解决依赖关系完成
依赖关系解决
================================================================================
Package 架构 版本 源 大小
================================================================================
正在安装:
python2-pip noarch 8.1.2-6.el7 epel 1.7 M
为依赖而安装:
python-backports x86_64 1.0-8.el7 base 5.8 k
python-backports-ssl_match_hostname noarch 3.5.0.1-1.el7 base 13 k
python-ipaddress noarch 1.0.16-2.el7 base 34 k
python-setuptools noarch 0.9.8-7.el7 base 397 k
事务概要
================================================================================
安装 1 软件包 (+4 依赖软件包)
总下载量:2.1 M
安装大小:9.4 M
Is this ok [y/d/N]: y
Downloading packages:
(1/5): python-backports-1.0-8.el7.x86_64.rpm | 5.8 kB 00:00
(2/5): python-backports-ssl_match_hostname-3.5.0.1-1.el7.n | 13 kB 00:00
(3/5): python-ipaddress-1.0.16-2.el7.noarch.rpm | 34 kB 00:00
(4/5): python-setuptools-0.9.8-7.el7.noarch.rpm | 397 kB 00:00
(5/5): python2-pip-8.1.2-6.el7.noarch.rpm | 1.7 MB 00:01
--------------------------------------------------------------------------------
总计 1.0 MB/s | 2.1 MB 00:02
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
正在安装 : python-backports-1.0-8.el7.x86_64 1/5
正在安装 : python-ipaddress-1.0.16-2.el7.noarch 2/5
正在安装 : python-backports-ssl_match_hostname-3.5.0.1-1.el7.noarch 3/5
正在安装 : python-setuptools-0.9.8-7.el7.noarch 4/5
正在安装 : python2-pip-8.1.2-6.el7.noarch 5/5
验证中 : python-ipaddress-1.0.16-2.el7.noarch 1/5
验证中 : python-setuptools-0.9.8-7.el7.noarch 2/5
验证中 : python2-pip-8.1.2-6.el7.noarch 3/5
验证中 : python-backports-1.0-8.el7.x86_64 4/5
验证中 : python-backports-ssl_match_hostname-3.5.0.1-1.el7.noarch 5/5
已安装:
python2-pip.noarch 0:8.1.2-6.el7
作为依赖被安装:
python-backports.x86_64 0:1.0-8.el7
python-backports-ssl_match_hostname.noarch 0:3.5.0.1-1.el7
python-ipaddress.noarch 0:1.0.16-2.el7
python-setuptools.noarch 0:0.9.8-7.el7
完毕!
[[email protected] ~]# pip install django==1.11.13
Collecting django==1.11.13
Using cached https://files.pythonhosted.org/packages/25/4d/c8228419346a0e84aec202a43e181afc6572b861d38f8a0306dbce6abef0/Django-1.11.13-py2.py3-none-any.whl
Collecting pytz (from django==1.11.13)
Using cached https://files.pythonhosted.org/packages/dc/83/15f7833b70d3e067ca91467ca245bae0f6fe56ddc7451aa0dc5606b120f2/pytz-2018.4-py2.py3-none-any.whl
Installing collected packages: pytz, django
Successfully installed django-1.11.13 pytz-2018.4
You are using pip version 8.1.2, however version 10.0.1 is available.
You should consider upgrading via the ‘pip install --upgrade pip‘ command.
[[email protected] ~]# pip install --upgrade pip
Cache entry deserialization failed, entry ignored
Collecting pip
Using cached https://files.pythonhosted.org/packages/0f/74/ecd13431bcc456ed390b44c8a6e917c1820365cbebcb6a8974d1cd045ab4/pip-10.0.1-py2.py3-none-any.whl
Installing collected packages: pip
Found existing installation: pip 8.1.2
Uninstalling pip-8.1.2:
Successfully uninstalled pip-8.1.2
Successfully installed pip-10.0.1
[[email protected] ~]#
原文地址:https://www.cnblogs.com/s-seven/p/9049157.html