1、下载Python3.4安装包
wget https://www.python.org/ftp/python/3.4.4/Python-3.4.4.tgz
2、解压、编译、安装
yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gcc make
tar zxvf Python-3.4.4.tgz cd Python-3.4.4 ./configure --prefix=/usr/local/python3 make make install
3、创建Python3.4的链接(CentOS6.7默认安装的是Python2)
cd /usr/bin/ ln -s /usr/local/python3/bin/python3.4 python3