码迷,mamicode.com
首页 > 编程语言 > 详细

redhat 5.0 python2.4升级到2.7

时间:2016-05-27 16:42:47      阅读:181      评论:0      收藏:0      [点我收藏+]

标签:

1)安装devtoolset
yum groupinstall "Development tools"

2)安装编译Python需要的包包
yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel 
3)下载并解压Python 2.7.9的源代码
mkdir soft
cd soft
wget --no-check-certificate https://www.python.org/ftp/python/2.7.9/Python-2.7.9.tgz     //https://www.python.org/ftp/python/2.7.9/
tar -xzvf Python-2.7.9.tgz
cd Python-2.7.9

4)编译与安装Python 2.7.9
./configure --prefix=/usr/local
make && make altinstall

 

redhat 5.0 python2.4升级到2.7

标签:

原文地址:http://www.cnblogs.com/zengkefu/p/5534918.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!