centos和readhat下安装python2.7

2020-11-18 07:04

阅读:825

标签:http   c   tar   t   get   amp   python   安装   re   read   install   

1、安装基本库
yum install gcc
yum install make
yum install zlib-devel
yum install bzip2-devel
yum install openssl-devel
yum install ncurses-devel

2、获得python2.7.4
wget http://www.python.org/ftp/python/2.7.4/Python-2.7.4.tar.bz2

3、解压 tar xf Python-2.7.4.tar.bz2

4、配置 cd Python-2.7.4 ./configure

5、生成&安装 make make install

6、默认安装的是Python2.4,需要修改为2.7 ln -sf /usr/local/bin/python2.7 /usr/local/bin/python

7、重进shell python -V

centos和readhat下安装python2.7,搜素材,soscw.com

centos和readhat下安装python2.7

标签:http   c   tar   t   get   amp   python   安装   re   read   install   

原文地址:http://www.cnblogs.com/jeffsun/p/3695660.html


评论


亲,登录后才可以留言!