1. 版本确认
$ python -V
2. 禁用初始状态下的repo
$ sudo yum installhttps://centos7.iuscommunity.org/ius-release.rpm
$ sudo sed -i -e "s/enabled=1/enabled=0/g" /etc/yum.repos.d/ius.repo
3. 安装
$ sudo yum install python35u python35u-pip --enablerepo=ius
4.确认
输入python后按tab键有以下输出
python python2 python2.7 python3.5 python3.5m