Vous n'êtes pas identifié(e).
L'icône rouge permet de télécharger chaque page du wiki visitée au format
PDF et la grise au format ODT →
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente Prochaine révision Les deux révisions suivantes | ||
utilisateurs:hypathie:tutos:python-trucs-et-machins [29/12/2015 15:46] Hypathie [Installer Eric6 python] |
utilisateurs:hypathie:tutos:python-trucs-et-machins [29/12/2015 15:59] Hypathie [Un utilisateur python3] |
||
---|---|---|---|
Ligne 43: | Ligne 43: | ||
<code user>python --version</code> | <code user>python --version</code> | ||
<code retour>Python 3.4.2</code> | <code retour>Python 3.4.2</code> | ||
+ | |||
+ | |||
+ | ====Changer de version de python avec update-alternatives ==== | ||
+ | |||
+ | * Version actuelle pour tout le système : | ||
+ | |||
+ | <code root>python --version</code> | ||
+ | |||
+ | * Voir où son les exécutable des version de python installées sur le système : | ||
+ | |||
+ | <code root>ls /usr/bin/python*</code> | ||
+ | <code retour>/usr/bin/python /usr/bin/python2.7 /usr/bin/python3.4 /usr/bin/python3m | ||
+ | /usr/bin/python2 /usr/bin/python3 /usr/bin/python3.4m | ||
+ | </code> | ||
+ | |||
+ | * Ajouter les version de python disponible à update-alternatives : | ||
+ | |||
+ | <code root>update-alternatives --list python</code> | ||
+ | <code retour>update-alternatives: erreur: pas d'alternatives pour python</code> | ||
+ | |||
+ | |||
+ | <code root>update-alternatives --install /usr/bin/python python /usr/bin/python2.7 1</code> | ||
+ | <code root>update-alternatives --install /usr/bin/python python /usr/bin/python3.4 2</code> | ||
+ | |||
+ | * Pour changer de version de python : | ||
+ | |||
+ | <code root>update-alternatives --config python</code> | ||
+ | On choisit la version 3. | ||
===== Installer Eric6 python===== | ===== Installer Eric6 python===== |