yum安装python3.6的方法

# centos7
# 换成阿里云的yum源
yum -y install epel-release
yum repolist
yum -y install python36

测试

[root@localhost ~]# python3
Python 3.6.8 (default, Aug  7 2019, 17:28:10) 
[GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> exit()

[root@localhost ~]# yum repolist
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirrors.aliyun.com
 * epel: www.nic.funet.fi
 * extras: mirrors.aliyun.com
 * updates: mirrors.aliyun.com
repo id                                                        repo name                                                                                     status
base/7/x86_64                                                  CentOS-7 - Base - mirrors.aliyun.com                                                          10,097
epel/x86_64                                                    Extra Packages for Enterprise Linux 7 - x86_64                                                13,453
extras/7/x86_64                                                CentOS-7 - Extras - mirrors.aliyun.com                                                           305
updates/7/x86_64                                               CentOS-7 - Updates - mirrors.aliyun.com                                                          711
repolist: 24,566
[root@localhost ~]# 
原文地址:https://www.cnblogs.com/kaishirenshi/p/11858655.html