- 先下载源码包,任意一个即可:
- (1)gzip-compressed 源码:Python-2.5.4.tgz
- (2)bzip2-compressed 源码:Python-2.5.4.tar.bz2
- 解压文件包:
- tar -zxvf Python-2.5.4.tgz (或者bzcat Python-2.5.4.tar.bz2)
- cd Python-2.5.4
- ./configure
- make
- make install
- 查看Python的版本
- python
- #该片段来自于http://www.codesnippet.cn/detail/04122012812.html
来源: http://www.codesnippet.cn/detail/04122012812.html