默认的repo中没有新版本的软件,这时候需要用scl
1)配置yum repo
sudo sh -c 'wget -qO- http://people.redhat.com/bkabrda/scl_python27.repo >> /etc/yum.repos.d/scl.repo'
2)安装软件
yum install python27
3) 配置shell环境
scl enable python27 bash
python -V
4) 安装pip
curl "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py"
python2.7 get-pip.py