yum安装python3.6的方法

2022/1/28 7:06:15

本文主要是介绍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



这篇关于yum安装python3.6的方法的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!


扫一扫关注最新编程教程