标签:
----记录一下,不每次都去网上找了;
1.下载安装包;
wget http://python.org/ftp/python/2.7.4/Python-2.7.8.tgz
2.解压
tar jxvf Python-2.7.8.tar.bz2
3.make, 需要安装gcc
cd Python-2.7.8
----
./configure //此时为默认安装路径,/usr/lib/python2.7
./configure --prefix=/usr/local/python2.7.4 //安装到想要安装的目录;需要事先建立目录;
标签:
原文地址:http://www.cnblogs.com/totoros/p/4179986.html