1.安装环境 yum -y install gcc zlib-devel make 2.下载python版本 wget http://www.python.org/ftp/python/3.5.1/Python-3.5.1.tgz 3.解压缩.编译和安装 tar -zxvf Python-3.4.0.tgz cd Python-3.4.0 ./configure --prefix=/opt/python3 make all make install 清除之前编译的可执行文件及配置文件. make