Merci. Effectivement cela a résolu mon problème. Je mets ce que j’ai fait pour d’autres qui auraient le même souci.
Il faut en premier lieu créer les liens de la maniére suivante :
update-alternatives --install /usr/bin/python python /usr/bin/python2.5 1
update-alternatives --install /usr/bin/python python /usr/bin/python2.6 0
Le 0 et le 1 en fin de commande servent a forcer la priorité. Comme dans mon cas je souhaite utiliser python 2.5 je force la priorité a 0 ainsi il sera en ‘auto-mode’.
On vérifie :
[code]update-alternatives --config python
There are 2 choices for the alternative python (providing /usr/bin/python).
Selection Path Priority Status
- 0 /usr/bin/python2.5 1 auto mode
1 /usr/bin/python2.5 1 manual mode
2 /usr/bin/python2.6 0 manual mode
Press enter to keep the current choice[*], or type selection number:
There are 2 choices for the alternative python (providing /usr/bin/python).[/code]
On pourra bien sûr choisir la version que l’on souhaite utiliser en sélectionnant son numéro.