yum安装python3.6的方法

Posted 开始认识

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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 ~]# 

 

以上是关于yum安装python3.6的方法的主要内容,如果未能解决你的问题,请参考以下文章

安装python3.6,设为默认,yum不能用

Centos7 yum安装Python3.6环境,超简单

centos7 yum 安装 python3.6

CentOS7 yum安装python3.6

centos 重新安装python3.6之后 yum 无法使用报错

RHEL7.0使用centos的yum源,并安装python3.6.9 和git2.9.5 htop