下载安装包
安装可能需要的依赖库
yum install openssl-devel bzip2-devel expat-devel gdbm-devel readline-devel sqlite-devel
解压安装包
tar -zxf Python-3.6.3.tgz
安装
cd Python-3.6.3/
./configure
make
make install
安装好以后使用python打开系统自带的python2.7,python3打开刚刚安装的python3.6。