- 论坛徽章:
- 0
|
首先要去
http://www.python.org/download/
下载适合你版本的 PYTHON.tgz
软件 解压缩
tar -zxvf Python-2.5.tgz
编译和安装
./configure --prefix=$HOME/lib --enable-unicode=ucs4 make make install
把python 2.5设置为默认版本:
mkdir $HOME/bin mkdir $HOME/bin/python mkdir $HOME/bin/python/bin ln -s $HOME/lib/bin/python $HOME/bin/python/bin/python
然后,在$HOME.bash_profile里加入一条:
export PATH=$HOME/bin/python/bin:$HOME/lib/bin:$PATH
重新载入配置文件:
source ~/.bash_profile,
再敲入python命令,显示:
Python 2.5 (r25:51908, Nov 23 2006, 19:51:08) [GCC 3.3.5 (Debian 1:3.3.5-13)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>>
OK 装完收工!
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u2/63784/showart_512423.html |
|