如何安装python 2.5.4?
我已经在我的笔记本电脑上安装了Ubuntu 12.10,现在我想将Python 2.5.4用于教育目的。 任何人都可以帮我逐步说明……我还需要IDLE 2.5.4。
我对所有旧的python版本使用https://launchpad.net/~fkrull/+archive/deadsnakes 。
它似乎得到维护,并且还添加了新版本。
只需执行以下操作:
sudo apt-add-repository ppa:fkrull/deadsnakes sudo apt-get update sudo apt-get install python2.5
这将从源代码安装2.5.4:
sudo apt-get install build-essential gcc cd Downloads wget https://www.python.org/ftp/python/2.5.4/Python-2.5.4.tgz tar -xvzf Python-2.5.4.tgz cd Python-2.5.4 ./configure --prefix=/usr/local/python2.5 make make test sudo checkinstall --pkgname python2.5 --provides python2.5
注意:如果编译因Modules/getbuildinfo.o
和Modules/getbuildinfo.c
错误而停止—>重做配置命令,如此SVNVERSION=not-found ./configure --prefix=[your/path/preference]
如果你想替换你的标准python:
sudo ln -s /usr/local/python2.5/bin/python /usr/bin/python2.5
您可以通过发出python2.5
而不是python
来使用此版本。