cd ~
yum -y install make gcc gcc-c++ kernel-devel
wget http://www.python.org/ftp/python/3.5.2/Python-3.5.2.tgz
(最新版本地址:https://www.python.org/ftp/python/)
tar -xzvf Python-3.5.2.tgz
cd Python-3.5.2
./configure
make
make install
yum install python*
重启
重启后检查版本Python -V
参考:http://www.sthshare.com/wordpress/install-python-2-7-on-centos-5-11.html