1.去官网下载要安装的对应版本的python的源代码python
下载地址:https://www.python.org/downloads/source/code
你能够选择你要下载的版本,用wget指令来下载相应的源代码get
2.解压下载的代码包编译
tar -xvf Python-2.7.13.tar.xz
3.查找configure文件配置
find . -name configure
4.进行配置下载
./configure
5.编译im
make make install
6.检查img
python
如出现如下则安装完成文件