Centos7 编译安装python3
step1:preparation
$ yum install yum-utils make wget gcc
$yum-builddep python
step2:download
$ wget https://www.python.org/ftp/python/3.5.0/Python-3.5.0.tgz
step3:make and install
$ tar xzf Python-3.4.3.tgz
$ cd Python-3.4.3
$ ./configure --prefix=/usr/local/
$ make
$ make altinstall //此选项为替换server的python,可以自由选择
$ make install
posted on 2015-12-17 00:28 yeah,youcandoit 阅读(166) 评论(0) 编辑 收藏 举报