安装依赖包
yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gcc make
下载对应的版本
wget https://www.python.org/ftp/python/3.4.3/Python-3.4.3.tgz解压
tar zxvf Python-3.4.3.tgz
进入文件夹
cd Python-3.4.3
编译
./configuremake
make install
建立软连接
ln -s /usr/local/bin/python3.4 /usr/bin/python3
取消软连接,实质是删除那个快捷方式 rm -rf /usr/bin/python3