프로덕션에서 Python 2.5 인터프리터가 실행하는 레거시 Python 코드를 작업해야하는 경우가 있습니다. 프로덕션 환경과 마찬가지로 개발 환경을 설정하고 싶습니다. 따라서 python2.5패키지 제품군 을 설치해야 합니다.
물론 소스에서 설치할 수는 있지만 절대 할 방법이 없다면 패키지를 사용하는 것이 좋습니다.
그러나 2.5 패키지는 11.04와 함께 제공되는 적절한 소스에는 포함되어 있지 않습니다. Natty와 원활하게 작동 할 수있는 Python 2.5 패키지는 어디에서 찾을 수 있습니까?
업데이트 : 작동합니다! apt-get출력을 더 자세히 읽었어야합니다 .
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
Python 2.5를 설치하기 위해 수행 한 작업은 다음과 같습니다.
: josh@josh; sudo add-apt-repository ppa:fkrull/deadsnakes
: josh@josh; sudo apt-get update
: josh@josh; sudo apt-get install python2.5
[...]
The following packages have unmet dependencies:
python-minimal : Breaks: python2.5-minimal (< 2.5.5-7) but 2.5.4-1ubuntu6.1 is to be installed
python2.5 : Depends: python2.5-minimal (= 2.5.5-8~ppa2~natty3) but 2.5.4-1ubuntu6.1 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
: josh@josh; sudo apt-get -f install
[...]
The following extra packages will be installed:
python2.5-minimal
Recommended packages:
python2.5
The following packages will be upgraded:
python2.5-minimal
[...]
Do you want to continue [Y/n]?
[...]
Setting up python2.5-minimal (2.5.5-8~ppa2~natty3) ...
: josh@josh; sudo apt-get install python2.5
The following NEW packages will be installed:
python2.5
[...]