安装
安装方式有pip及yum,本人采用pip安装。
首先确认系统是否已经有pip,没有的话按以下方式安装
[root@tmaster3 src]# wget https://bootstrap.pypa.io/get-pip.py
--2020-09-11 10:26:58-- 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
长度:1885433 (1.8M) [text/x-python]
正在保存至: “get-pip.py”
100%[===================================================================================================================================================================================================>] 1,885,433 1.57MB/s 用时 1.1s
2020-09-11 10:27:00 (1.57 MB/s) - 已保存 “get-pip.py” [1885433/1885433])
##安装
[root@tmaster3 src]# python get-pip.py
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
Collecting pip
Downloading pip-20.2.3-py2.py3-none-any.whl