一、安装依赖包
[root@xue ~]# yum install openssl-devel bzip2-devel expat-devel gdbm-devel readline-devel sqlite-devel
二、安装wget
[root@xue ~]# yum install wget -y
三、下载python
[root@xue ~]# wget https://www.python.org/ftp/python/3.5.1/Python-3.5.1.tgz
四、解压
[root@xue ~]# tar -zxvf Python-3.5.1.tgz
[root@xue ~]# mv Python-3.5.1 /usr/local/
五、下载gcc包
[root@xue ~]# yum install gcc -y
六、进入目录,配置
[root@xue ~]# cd /usr/local/Python-3.5.1/
[root@xue Python-3.5.1]# ./configure
[root@xue Python-3.5.1]# make
[root@xue Python-3.5.1]# make install
网友评论