Centos7通过yum安装python 3.6

作者: 懂事的观众 | 来源:发表于2019-01-06 22:00 被阅读43次

Centos7通过yum安装python 3.6

​ Centos默认的源里面没有python3.6,想要通过yum安装python的话就需要导入其他yum源(EPEL)。官网地址https://fedoraproject.org/wiki/EPEL

1.安装EPEL源

​ 参考官网的教程,输入如下命令:

 # yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

2.安装python3

# 安装python3
yum install python36
# 使用python3
python36

3.安装pip

# 下载get-pip.py
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
# 使用python运行脚本
python36 get-pip.py

相关文章

网友评论

    本文标题:Centos7通过yum安装python 3.6

    本文链接:https://www.haomeiwen.com/subject/eyperqtx.html