安装方法如下:
# 安装epel源扩展
[user@kubernetes ~]$ yum install -y epel-release
# ..........
# ..........
# epel源已经更新到python3.6.8版本
[user@kubernetes ~]$ yum install python36 python36-devel python36-libs
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.cn99.com
* epel: mirrors.aliyun.com
* extras: mirrors.cn99.com
* updates: mirrors.aliyun.com
Resolving Dependencies
--> Running transaction check
---> Package python36.x86_64 0:3.6.8-1.el7 will be installed
--> Processing Dependency: python36-libs(x86-64) = 3.6.8-1.el7 for package: python36-3.6.8-1.el7.x86_64
--> Processing Dependency: libpython3.6m.so.1.0()(64bit) for package: python36-3.6.8-1.el7.x86_64
# ..........
# ..........
# 安装Python2 和 Python3 的pip工具并更新到最新版本
[user@kubernetes ~]$ curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && python3 get-pip.py && python get-pip.py
# ..........
# ..........
来源:CSDN
作者:whatday
链接:https://blog.csdn.net/whatday/article/details/104034169