[root@localhost ~]# yum install python
已加载插件:fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
base | 3.6 kB 00:00:00
docker-ce-stable | 3.5 kB 00:00:00
extras | 3.4 kB 00:00:00
updates | 3.4 kB 00:00:00
正在解决依赖关系
--> 正在检查事务
---> 软件包 python.x86_64.0.2.7.5-76.el7 将被 升级
---> 软件包 python.x86_64.0.2.7.5-77.el7_6 将被 更新
--> 正在处理依赖关系 python-libs(x86-64) = 2.7.5-77.el7_6,它被软件包 python-2.7.5-77.el7_6.x86_64 需要
--> 正在检查事务
---> 软件包 python-libs.x86_64.0.2.7.5-76.el7 将被 升级
---> 软件包 python-libs.x86_64.0.2.7.5-77.el7_6 将被 更新
--> 解决依赖关系完成
依赖关系解决
====================================================================================
Package 架构 版本 源 大小
====================================================================================
正在更新:
python x86_64 2.7.5-77.el7_6 updates 94 k
为依赖而更新:
python-libs x86_64 2.7.5-77.el7_6 updates 5.6 M
事务概要
====================================================================================
升级 1 软件包 (+1 依赖软件包)
总下载量:5.7 M
Is this ok [y/d/N]: y
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
(1/2): python-2.7.5-77.el7_6.x86_64.rpm | 94 kB 00:00:00
(2/2): python-libs-2.7.5-77.el7_6.x86_64.rpm | 5.6 MB 00:00:09
------------------------------------------------------------------------------------
总计 623 kB/s | 5.7 MB 00:09
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
正在更新 : python-libs-2.7.5-77.el7_6.x86_64 1/4
正在更新 : python-2.7.5-77.el7_6.x86_64 2/4
清理 : python-2.7.5-76.el7.x86_64 3/4
清理 : python-libs-2.7.5-76.el7.x86_64 4/4
验证中 : python-libs-2.7.5-77.el7_6.x86_64 1/4
验证中 : python-2.7.5-77.el7_6.x86_64 2/4
验证中 : python-2.7.5-76.el7.x86_64 3/4
验证中 : python-libs-2.7.5-76.el7.x86_64 4/4
更新完毕:
python.x86_64 0:2.7.5-77.el7_6
作为依赖被升级:
python-libs.x86_64 0:2.7.5-77.el7_6
完毕!
[root@localhost ~]# pip install robotframework
-bash: pip: 未找到命令
[root@localhost ~]# wget https://bootstrap.pypa.io/get-pip.py
-bash: wget: 未找到命令
[root@localhost ~]# yum install wget
已加载插件:fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
正在解决依赖关系
--> 正在检查事务
---> 软件包 wget.x86_64.0.1.14-18.el7 将被 安装
--> 解决依赖关系完成
依赖关系解决
====================================================================================
Package 架构 版本 源 大小
====================================================================================
正在安装:
wget x86_64 1.14-18.el7 base 547 k
事务概要
====================================================================================
安装 1 软件包
总下载量:547 k
安装大小:2.0 M
Is this ok [y/d/N]: y
Downloading packages:
wget-1.14-18.el7.x86_64.rpm | 547 kB 00:00:04
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
正在安装 : wget-1.14-18.el7.x86_64 1/1
验证中 : wget-1.14-18.el7.x86_64 1/1
已安装:
wget.x86_64 0:1.14-18.el7
完毕!
[root@localhost ~]# wget https://bootstrap.pypa.io/get-pip.py
--2019-05-14 22:40:52-- https://bootstrap.pypa.io/get-pip.py
正在解析主机 bootstrap.pypa.io (bootstrap.pypa.io)... 151.101.228.175, 2a04:4e42:1a::175
正在连接 bootstrap.pypa.io (bootstrap.pypa.io)|151.101.228.175|:443... 已连接。
已发出 HTTP 请求,正在等待回应... 200 OK
长度:1709825 (1.6M) [text/x-python]
正在保存至: “get-pip.py”
31% [============> ] 543,750 4.68KB/s 剩余 3m 7s
100%[==========================================>] 1,709,825 9.04KB/s 用时 4m 48s
2019-05-14 22:45:41 (5.80 KB/s) - 已保存 “get-pip.py” [1709825/1709825])
[root@localhost ~]#
[root@localhost ~]# pip install roboframework
-bash: pip: 未找到命令
[root@localhost ~]# ls
anaconda-ks.cfg get-pip.py learngit rancher static_web
[root@localhost ~]# python get-pip.py
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
Collecting pip
Downloading https://files.pythonhosted.org/packages/5c/e0/be401c003291b56efc55aeba6a80ab790d3d4cece2778288d65323009420/pip-19.1.1-py2.py3-none-any.whl (1.4MB)
|████████████████████████████████| 1.4MB 5.8kB/s
Collecting setuptools
Downloading https://files.pythonhosted.org/packages/ec/51/f45cea425fd5cb0b0380f5b0f048ebc1da5b417e48d304838c02d6288a1e/setuptools-41.0.1-py2.py3-none-any.whl (575kB)
|████████████████████████████████| 583kB 13kB/s
Collecting wheel
Downloading https://files.pythonhosted.org/packages/bb/10/44230dd6bf3563b8f227dbf344c908d412ad2ff48066476672f3a72e174e/wheel-0.33.4-py2.py3-none-any.whl
Installing collected packages: pip, setuptools, wheel
Successfully installed pip-19.1.1 setuptools-41.0.1 wheel-0.33.4
[root@localhost ~]# pip install robotframework
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
Collecting robotframework
Downloading https://files.pythonhosted.org/packages/36/c6/6f89c80ac5a526a091bd383ffdfc64c9a68d9df0c775d4b36f03d8e0ac25/robotframework-3.1.1-py2.py3-none-any.whl (601kB)
|████████████████████████████████| 604kB 89kB/s
Installing collected packages: robotframework
Successfully installed robotframework-3.1.1
来源:oschina
链接:https://my.oschina.net/u/2392809/blog/3049636