centos7 install python3

考虑现在python3的应用,需要在现有的基础上安装python3,系统现在默认是python2的,但是不能升级python2以免对系统产生影响。

一、下载python3的源

sudo yum install -y https://centos7.iuscommunity.org/ius-release.rpm

二、yum install python3以及pip3

sudo yum install -y python36u python36u-libs python36u-devel python36u-pip

三、检查

python3.6 --version


你可能感兴趣的:(centos7 install python3)