1 安装Python2.6的依赖包
yum groupinstall "Development tools"
yum install zlib-devel
yum install bzip2-devel
yum install openssl-devel
yum install ncurses-devel
yum install sqlite-devel
2 下载编译安装Python2.6
方法 一
方法可能失效,由于https://www.python.org/国内可能访问不了