python
[root@localhost ~]# yum -y install centos-release-scl-rh
[root@localhost ~]# yum -y install rh-python35
python
[root@localhost ~]# python --version
Python 2.6.6
[root@localhost ~]# scl enable rh-python35 bash
[root@localhost ~]# python --version
Python 3.5.1
[root@localhost ~]# exit
python
[root@localhost ~]# python --version
Python 2.6.6
[root@localhost ~]# echo 'source /opt/rh/rh-python35/enable' > /etc/profile.d/rh-python35.sh
[root@localhost ~]# source /etc/profile
[root@localhost ~]# python --version
Python 3.5.1
Recommended Posts