1、源码包下载
wget
2、相关依赖
yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gcc make
3、解压
xz –d Python 3.4.5.tar.xztar –xzvf Python 3.4.5.tarcd Python 3.4.5./configure –prefix=/usr/local/python3make && make install之前安装过python2的版本添加软链
ln -s /usr/local/python3/bin/python3 /usr/bin/python3