vendredi 11 août 2017

Changer version de python et pip command

Si vous voulez utiliser Python3.6 avec la commande "python_three", on a besoin de créer des "Liens symboliques" pour python3.6.  Voir le répertoire de Python:

$ sudo ls -l /bin/py*
(ou "/usr/bin/py*")

Et changer les liens symboliques.
$ sudo ln -s /bin/python3.6 /bin/python_three
(ou "sudo ln -s /usr/bin/python3.6 /usr/bin/python_three")

pip aussi.
$ sudo ln -s /bin/pip3.6 /bin/pip_three
(ou "sudo ln -s /usr/bin/pip3.6 /usr/bin/pip_three")

Pour supprimer le lien symbolique.
$ sudo unlink /bin/python_three
$ sudo unlink /bin/pip_three
(ou "sudo unlink /usr/bin/python_three" et "sudo unlink /usr/bin/pip_three")

Aucun commentaire:

Enregistrer un commentaire