Occasionalmente devo lavorare su alcuni codici Python legacy eseguiti dall'interprete Python 2.5 in produzione. Vorrei impostare il mio ambiente di sviluppo proprio come la produzione, quindi devo installare la python2.5famiglia di pacchetti.
Certo, posso installarlo dal sorgente, ma preferirei davvero usare i pacchetti a meno che non ci sia assolutamente modo di farlo.
Tuttavia, i pacchetti 2.5 non sono inclusi in nessuna delle fonti apt fornite con 11.04. Dove posso trovare i pacchetti Python 2.5 che potrebbero funzionare senza problemi con Natty?
Aggiornamento: funziona! Avrei dovuto leggere l' apt-getoutput più da vicino:
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
Quindi, ecco cosa ho fatto per installare 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
[...]