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