Python下载

https://www.python.org/downloads/source/

Python-2.7.13.tgz解压、配置、编译、安装

tar -zxvf Python-2.7.13.tgz
cd Python-2.7.13
./configure --prefix=/usr/local --enable-shared
make
make install

Linux下源码安装一般为3个步骤

步骤1  configure(配置)
./configure 是一个可执行的脚本, 通过 ./configure --help 可查看详细的选项列表
#安装到/usr/local目录下
./configure --prefix=/usr/local

步骤2  make(编译)
make

步骤3  make install(安装)
make install