阿里云centos7安装python3

参考:https://www.digitalocean.com/community/tutorials/how-to-install-python-3-and-set-up-a-local-programming-environment-on-centos-7

首先升级yum

sudo yum -y update

扩展yum

sudo yum -y install yum-utils

安装开发工具包

sudo yum -y groupinstall development

安装ius

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

安装python3

sudo yum -y install python36

安装pip3

sudo yum install python36-setuptools
sudo easy_install-3.6 pip

大功告成,现在可以使用pip3安装包了,example:

pip3 install bpython

你可能感兴趣的:(阿里云centos7安装python3)