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:43] Hypathie [Installer Eric6 python] |
utilisateurs:hypathie:tutos:python-trucs-et-machins [29/12/2015 15:58] Hypathie [Un utilisateur python3] |
||
---|---|---|---|
Ligne 44: | Ligne 44: | ||
<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. | ||
+ | |||
+ | <code root></code> | ||
+ | |||
+ | <code root></code> | ||
+ | <code root></code> | ||
+ | <code root></code> | ||
+ | <code root></code> | ||
+ | <code root></code> | ||
+ | <code root></code> | ||
===== Installer Eric6 python===== | ===== Installer Eric6 python===== | ||
Ligne 50: | Ligne 86: | ||
<code root>apt-get install mercurial build-essential qt5-default qtbase5-dev qttools5-dev-tools libqt5scintilla2-11 python3-pyqt5.qtwebkit python3-pyqt5.qtsvg python3-pyqt5.qtsql libqt5webkit5-dev python3-pyqt5.qtwebkit python-qscintilla2 python3-pyqt4.qsci python3-pyqt4.qtsql | <code root>apt-get install mercurial build-essential qt5-default qtbase5-dev qttools5-dev-tools libqt5scintilla2-11 python3-pyqt5.qtwebkit python3-pyqt5.qtsvg python3-pyqt5.qtsql libqt5webkit5-dev python3-pyqt5.qtwebkit python-qscintilla2 python3-pyqt4.qsci python3-pyqt4.qtsql | ||
</code> | </code> | ||
+ | |||
+ | * Installation de Qt : | ||
<code user>wget http://qt-mirror.dannhauer.de/archive/online_installers/2.0/qt-unified-linux-x64-2.0.2-2-online.run</code> | <code user>wget http://qt-mirror.dannhauer.de/archive/online_installers/2.0/qt-unified-linux-x64-2.0.2-2-online.run</code> | ||
Ligne 59: | Ligne 97: | ||
<code user>export PATH=${QTDIR}/bin:${PATH}</code> | <code user>export PATH=${QTDIR}/bin:${PATH}</code> | ||
<code user>ln -s /opt/Qt/5.5/gcc_64/bin/qmake</code> | <code user>ln -s /opt/Qt/5.5/gcc_64/bin/qmake</code> | ||
+ | |||
+ | * Installation à neuf de sip : | ||
+ | |||
<code user>rm /usr/lib/python3/dist-packages/sip*</code> | <code user>rm /usr/lib/python3/dist-packages/sip*</code> | ||
<code user>wget http://skylink.dl.sourceforge.net/project/pyqt/sip/sip-4.17/sip-4.17.tar.gz</code> | <code user>wget http://skylink.dl.sourceforge.net/project/pyqt/sip/sip-4.17/sip-4.17.tar.gz</code> | ||
Ligne 82: | Ligne 123: | ||
<code root>ln -s /usr/lib/python3.4/site-packages/PyQt5 /usr/lib/python3/dist-packages/PyQt5</code> | <code root>ln -s /usr/lib/python3.4/site-packages/PyQt5 /usr/lib/python3/dist-packages/PyQt5</code> | ||
<code user>python3 configure.py --destdir /usr/lib/python3.4</code> | <code user>python3 configure.py --destdir /usr/lib/python3.4</code> | ||
+ | |||
+ | * Installation de QScintilla : | ||
+ | |||
<code user>cd ~/Bureau/</code> | <code user>cd ~/Bureau/</code> | ||
Ligne 101: | Ligne 145: | ||
<code root>make install</code> | <code root>make install</code> | ||
+ | * Installation de eric6 : | ||
<code user>cd ~/Bureau</code> | <code user>cd ~/Bureau</code> |