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

准备Python编译环境

时间:2016-09-03 08:36:24      阅读:478      评论:0      收藏:0      [点我收藏+]

标签:

2.1下载Python2.7.6.tgzipython1.2.1.tgzsqlite-autoconf-3071401.tar.gz

2.2安装Python2.7.6ipython1.2.1.tgzsqlite-autoconf-3071401.tar.gz

2.3安装前准备

yum -y install readline-devel gcc

2.4编译安装Python2.7.6

tar -zxvf Python2.7.6.tgz

cd Python2.7.6

./configure --prefix=/usr/local/python27

make && make install

2.5编译安装ipython1.2.1

tar -zxvf ipython1.2.1.tgz

cd ipython1.2.1

/usr/local/python27/bin/python2.7 setup.py build

/usr/local/python27/bin/python2.7 setup.py install

2.6创建链接

ln -sv /usr/local/python27/bin/python2.7 /usr/bin/python27

ln -sv /usr/local/python27/bin/ipython /usr/bin/

2.7编译安装sqlplit-autoconf

tar -zxvf sqlite-autoconf-3071401.tar.gz

cd sqlite-autoconf-3071401

./configure --prefix=/usr/local

make && make install

准备Python编译环境

标签:

原文地址:http://www.cnblogs.com/flyback/p/5836187.html

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