บางครั้งฉันต้องทำงานกับรหัส Python ดั้งเดิมที่ทำงานโดยล่าม Python 2.5 ในการผลิต ฉันต้องการตั้งค่าสภาพแวดล้อมการพัฒนาของฉันเช่นเดียวกับการผลิตดังนั้นฉันต้องติดตั้งpython2.5แพคเกจตระกูล
แน่นอนฉันสามารถติดตั้งจากแหล่งที่มา แต่ฉันชอบที่จะใช้แพคเกจจริงๆเว้นแต่จะไม่มีวิธีที่จะทำมัน
อย่างไรก็ตามแพคเกจ 2.5 จะไม่รวมอยู่ในแหล่งที่ฉลาดใด ๆ ที่มาพร้อมกับ 11.04 ฉันจะหาแพ็คเกจ Python 2.5 ที่มีแนวโน้มว่าจะทำงานร่วมกับ Natty ได้อย่างราบรื่นได้อย่างไร
อัปเดต: ใช้งานได้! ฉันควรอ่าน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
[...]