先安装编译环境
yum -y install gcc gcc-c++ zlib-devel bzip2-devel openssl-devel sqlite-devel readline-devel libffi-devel tk-devel ncurses-devel kernel-headers
1 编译安装python2
官网下载源码包:https://www.python.org/ftp/python/2.7.18/Python-2.7.18.tgz
[root@Test ~]# tar -xf Python-2.7.18.tgz
[root@Test ~]# cd Python-2.7.18
[root@Test Python-2.7.18]# ./configure --enable-shared --prefix=/usr/local/python2
[</

最低0.47元/天 解锁文章

1095

被折叠的 条评论
为什么被折叠?



