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 10:16] Hypathie [Installer Eric6 python] |
utilisateurs:hypathie:tutos:python-trucs-et-machins [29/12/2015 14:05] Hypathie [Installer Eric6 python] |
||
---|---|---|---|
Ligne 46: | Ligne 46: | ||
===== Installer Eric6 python===== | ===== Installer Eric6 python===== | ||
- | * On passe le système sous python3 | ||
- | <code root>update-alternatives --install /usr/bin/python python /usr/bin/python2.7 1</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> |
- | <code root>update-alternatives --install /usr/bin/python python /usr/bin/python3.4 2</code> | + | <code root>chmod a+x qt-unified-linux-x64-2.0.2-2-online.run</code> |
+ | <code root>./qt-unified-linux-x64-2.0.2-2-online.run</code> | ||
+ | <code user>export QTDIR=/opt/Qt/5.5/gcc_64/</code> | ||
+ | <code user>export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${QTDIR}/lib</code> | ||
+ | <code user>export PATH=${QTDIR}/bin:${PATH}</code> | ||
+ | <code user>ln -s /opt/Qt/5.5/gcc_64/bin/qmake</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>tar -zxvf sip-4.17.tar.gz</code> | ||
+ | <code user>cd sip-4.17/</code> | ||
+ | <code user>python3 configure.py</code> | ||
+ | <code user>make</code> | ||
+ | <code root>make install</code> | ||
+ | <code user>python3</code> | ||
+ | <code>>>> import sip</code> | ||
+ | <code>>>> print(sip.SIP_VERSION_STR)</code> | ||
+ | <code>>>> exit()</code> | ||
+ | <code user>wget http://netcologne.dl.sourceforge.net/project/pyqt/PyQt5/PyQt-5.5.1/PyQt-gpl-5.5.1.tar.gz</code> | ||
+ | <code user>tar -zxvf PyQt-gpl-5.5.1.tar.gz</code> | ||
+ | <code user>cd PyQt-gpl-5.5.1/</code> | ||
+ | <code user>python3 configure.py</code> | ||
+ | <code user>make</code> | ||
+ | <code user>make install</code> | ||
+ | <code user>python3</code> | ||
+ | <code>>>> import PyQt5</code> | ||
+ | <code>>>> exit()</code> | ||
+ | <code root>ln -s /usr/lib/python3.4/site-packages/PyQt5 /usr/lib/python3.4/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 root>update-alternatives --list python</code> | + | <code user>cd ~/Bureau/</code> |
- | + | <code user>wget http://netcologne.dl.sourceforge.net/project/pyqt/QScintilla2/QScintilla-2.9.1/QScintilla-gpl-2.9.1.tar.gz</code> | |
- | + | <code user> tar -xzvf QScintilla-gpl-2.9.1.tar.gz</code> | |
- | <code root>python --version</code> | + | <code user>cd QScintilla-gpl-2.9.1/</code> |
- | + | <code user>cd Qt4Qt5/</code> | |
- | <code root>Python 2.7.9</code> | + | <code user>qmake qscintilla.pro </code> |
- | + | <code user>make</code> | |
- | <code root>update-alternatives --config python</code> | + | <code root>make install</code> |
- | + | <code user></code> | |
- | On choisit la version 3. | + | <code user></code> |
- | + | <code user></code> | |
- | <code root>python --version</code> | + | <code user></code> |
- | + | <code user></code> | |
- | + | <code user></code> | |
- | <code root>Python 3.4.2</code> | + | <code user></code> |
- | + | <code user></code> | |
- | + | <code user></code> | |
- | * On télécharge le script | + | |
- | + | ||
- | <code text script_installEric6> | + | |
- | #!/bin/sh | + | |
- | + | ||
- | 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 | + | |
- | + | ||
- | mkdir temp | + | |
- | + | ||
- | cd temp | + | |
- | + | ||
- | apt-get source python3-pyqt5.qsci | + | |
- | + | ||
- | cd qscintilla2-2.8.4+dfsg/Python/ | + | |
- | + | ||
- | python3 configure.py --pyqt=PyQt5 \ #On indique qu'on souhaite utiliser pyqt5 | + | |
- | -q /usr/lib/x86_64-linux-gnu/qt5/bin/qmake \ #Chemin du compilateur qmake livré avec qt5 | + | |
- | -d /usr/lib/python3/dist-packages/PyQt5 # Chemin d'installation de PyQt5 | + | |
- | + | ||
- | make | + | |
- | + | ||
- | make install | + | |
- | + | ||
- | cd ../.. | + | |
- | + | ||
- | hg clone http://die-offenbachs.homelinux.org:48888/hg/eric | + | |
- | + | ||
- | cd eric | + | |
- | + | ||
- | python3 install.py | + | |
- | + | ||
- | rm -rf ~/Téléchargement/temp/ | + | |
- | + | ||
- | exit | + | |
- | </code> | + | |
- | + | ||
- | * On se place dans le dossier de réception | + | |
- | + | ||
- | <code user>cd Téléchargement</code> | + | |
- | + | ||
- | * On donne les droits d'exécution | + | |
- | <code root>chmod +x script_installEric6</code> | + | |
- | + | ||
- | * On lance le script | + | |
- | <code root>./script_installEric6</code> | + | |
===== Utilisation ===== | ===== Utilisation ===== | ||