CentOS7 yum安裝python3.6
環境
[root@node1 ~]# cat /etc/redhat-release
CentOS Linux release 7.6.1810 (Core)
依賴epel源
配epel源_阿里
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
安裝python3.6.8
yum install python36
依賴:python36-libs.x86_64
安裝pip3
# 搜索pip3的安裝包名稱
yum whatprovides pip3
# 安裝pip3
yum install python36-pip
驗證
[root@node1 ~]# python3 --version
Python 3.6.8