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 16:38] Hypathie [Installer Eric6 python] |
utilisateurs:hypathie:tutos:python-trucs-et-machins [30/12/2015 11:40] Hypathie [Installer Eric python IDE] |
||
---|---|---|---|
Ligne 72: | Ligne 72: | ||
On choisit la version 3. | On choisit la version 3. | ||
- | ===== Installer Eric6 python===== | + | ===== Installer Eric python IDE===== |
- | * Installation des paquets nécessaires : | + | ====Installation simple de Eric5 depuis les sources==== |
- | <code root>apt-get update && 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 | + | * Références : http://eric-ide.python-projects.org/eric-download.html |
+ | |||
+ | 1) On vérifie que le système est sous python2 (voir ci-dessus) | ||
+ | |||
+ | 2) On installe depuis les sources | ||
+ | <code root>apt-get install eric</code> | ||
+ | (cela installe aussi le paquet ''eric-api-files'' | ||
+ | |||
+ | * Désinstaller Eric installé depuis les sources : | ||
+ | <code root>apt-get remove eric</code> | ||
+ | |||
+ | ====Installer Eric6 ==== | ||
+ | |||
+ | === Installer les dépendances depuis les dépôts=== | ||
+ | |||
+ | <code root> | ||
+ | apt-get install python3-pyqt5 python3-pyqt5-dbg python3-pyqt4.qsci python3-pyqt5.qtx11extras python3-pyqt5.qtsql python3-pyqt5.qtsql-dbg python3-pyqt5.qtx11extras-dbg python3-pyqt5.qsci python3-pyqt5.qsci-dbg python-pyqt5.qtsvg python3-pyqt5.qtsvg-dbg python-pyqt5.qtwebkit python-pyqt5.qtwebkit-db python3-pyqt5.qtwebkit python3-pyqt5.qtwebkit-dbg | ||
</code> | </code> | ||
- | * Installation de Qt sur une Jessie 64 bits : | + | ===Installer eric6=== |
- | <code user>wget http://qt-mirror.dannhauer.de/archive/online_installers/2.0/qt-unified-linux-x64-2.0.2-2-online.run</code> | + | * On créer un dossier d'installation dans le répertoire courant de l'utilisateur : |
- | <code root>chmod a+x qt-unified-linux-x64-2.0.2-2-online.run</code> | + | <code user>mkdir Eric6Install && cd Eric6Install</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> | + | |
- | * Installation de Qt sur une Jessie 32 bits | + | * On télécharge Eric6 |
+ | <code user>wget http://heanet.dl.sourceforge.net/project/eric-ide/eric6/stable/6.1.0/eric6-6.1.0.tar.gz</code> | ||
- | <code user>wget http://qt-mirror.dannhauer.de/archive/qt/5.5/5.5.1/qt-opensource-linux-x86-5.5.1.run</code> | + | * On décompresse le dossier téléchargé : |
- | <code root>chmod a+x qt-opensource-linux-x86-5.5.1.run</code> | + | <code user>tar -zxvf eric6-6.1.0.tar.gz</code> |
- | <code root>./qt-opensource-linux-x86-5.5.1.run</code> | + | * On se déplace dans le dossier décompressé : |
- | <code user>export QTDIR=/opt/Qt5.5.1/5.5/gcc/</code> | + | <code user>cd eric6-6.1.0/</code> |
- | <code user>export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${QTDIR}/lib</code> | + | * On lance l'installation de eric6 : |
- | <code user>export PATH=${QTDIR}/bin:${PATH}</code> | + | <code root>python3 install.py</code> |
- | <code user>ln -s /opt/Qt5.5.1/5.5/gcc/bin/qmake</code> | + | * Si toutes les dépendances ont bien été installée on a le retour : |
+ | <code>Checking dependencies | ||
+ | Python Version: 3.4.2 | ||
+ | Found PyQt5 | ||
+ | Found QScintilla2 | ||
+ | Found QtGui | ||
+ | Found QtNetwork | ||
+ | Found QtPrintSupport | ||
+ | Found QtSql | ||
+ | Found QtSvg | ||
+ | Found QtWebKit | ||
+ | Found QtWebKitWidgets | ||
+ | Found QtWidgets | ||
+ | Qt Version: 5.3.2 | ||
+ | sip Version: 4.16.4 | ||
+ | PyQt Version: 5.3.2 | ||
+ | QScintilla Version: 2.8.4 | ||
+ | All dependencies ok. | ||
+ | Cleaning up old installation ... | ||
- | * Installation à neuf de sip : | + | Creating configuration file ... |
- | <code user>rm /usr/lib/python3/dist-packages/sip*</code> | + | Compiling user interface files ... |
- | <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> | + | |
- | * Installation de QScintilla : | + | Compiling source files ... |
+ | Installing eric6 ... | ||
- | <code user>cd ~/Bureau/</code> | + | Installation complete.</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 user>cd QScintilla-gpl-2.9.1/</code> | + | |
- | <code user>cd Qt4Qt5/</code> | + | |
- | <code user>qmake qscintilla.pro </code> | + | |
- | <code user>make</code> | + | |
- | <code root>make install</code> | + | |
- | <code user>cd ../designer-Qt4Qt5</code> | + | |
- | <code user>qmake designer.pro</code> | + | |
- | <code user>make</code> | + | |
- | <code root>make install</code> | + | |
- | <code user>cd ../Python</code> | + | * On peut déjà lancer Eric6 en tant que root |
- | <code user>python3 configure.py --pyqt=PyQt5</code> | + | <code root>eric6</code> |
- | <code user>make</code> | + | |
- | <code root>make install</code> | + | |
- | * Installation de eric6 : | + | {{http://pix.toile-libre.org/upload/original/1451467749.png?00}} |
- | <code user>cd ~/Bureau</code> | + | ===Lancer eric6 en tant utilisateur=== |
- | <code user>wget http://heanet.dl.sourceforge.net/project/eric-ide/eric6/stable/6.1.0/eric6-6.1.0.tar.gz</code> | + | |
- | <code user>tar -zxvf eric6-6.1.0.tar.gz</code> | + | <code root>chmod a+w -R ~/.eric6</code> |
- | <code user>cd eric6-6.1.0/</code> | + | |
- | <code root>python3 install.py</code> | + | <code user>eric6</code> |
+ | |||
+ | |||
+ | {{http://pix.toile-libre.org/upload/original/1451467749.png?00}} | ||
+ | |||
+ | Et voilà 8-) | ||
+ | |||
+ | ===Ajouter eric6 fr === | ||
+ | |||
+ | <code user>cd tmp/</code> | ||
+ | |||
+ | <code user>wget http://netcologne.dl.sourceforge.net/project/eric-ide/eric6/stable/6.1.0-RC1/eric6-i18n-fr-6.1.0-RC1.zip</code> | ||
+ | <code user>unzip eric6-i18n-fr-6.1.0-RC1.zip</code> | ||
+ | |||
+ | <code user>cd eric6-6.1.0-RC1/</code> | ||
<code root>python3 install-i18n.py</code> | <code root>python3 install-i18n.py</code> | ||
- | <code user>chmod a+w -R ~/.eric6</code> | + | ===Installer Le plugin Django=== |
- | <code user></code> | + | |
- | <code user></code> | + | * Depuis les références : http://eric-ide.python-projects.org/plugins6/repository.xml |
- | <code user></code> | + | On cherche l'url de django |
- | <code user></code> | + | <code><Plugin status="stable"><Name>Project, Django</Name><Short>Basic support for Django projects.</Short><Description> |
- | <code user></code> | + | This plug-in implements support for Django projects. It includes |
- | <code user></code> | + | API files for the various Django versions and a Django menu offering |
- | <code user></code> | + | various Django related actions from within eric5. |
- | <code user></code> | + | </Description><Url>http://eric-ide.python-projects.org/plugins6/stable/PluginProjectDjango.zip</Url><Author>Detlev Offenbach <detlev@die-offenbachs.de></Author><Version>4.0.2</Version><Filename>PluginProjectDjango-4_0_2.zip</Filename></Plugin></code> |
+ | |||
+ | * On copie l'url et on télécharge le plugin : | ||
+ | <code user>cd ~/tmp</code> | ||
+ | <code user>wget http://eric-ide.python-projects.org/plugins6/stable/PluginProjectDjango.zip</code> | ||
+ | |||
+ | * On ouvre eric6 | ||
+ | On clique sur l'onglet Plugins > Installation de plugins > puis ajouter \\ | ||
+ | On cherche dans ~/tmp/sonPlugin.zip\\ | ||
+ | On le sélectionne : | ||
+ | |||
+ | {{http://pix.toile-libre.org/upload/original/1451471865.png?900}} | ||
+ | |||
+ | Puis ''ouvrir'' > ''suivant'' > ''suivant'' > ''install'' | ||
+ | |||
+ | Et voilà 8-) | ||
+ | |||
+ | ===Désinstaller eric6=== | ||
+ | |||
+ | * On se déplace dans le fichier ''tmp/eric6-6.1.0'' | ||
+ | <code user>cd tmp/eric6-6.1.0/</code> | ||
+ | |||
+ | <code root>python3 uninstall.py</code> | ||
+ | |||
+ | * Pour désinstaller les dépendances | ||
+ | <code root>apt-get remove python3-pyqt5 python3-pyqt5-dbg python3-pyqt4.qsci python3-pyqt5.qtx11extras python3-pyqt5.qtsql python3-pyqt5.qtsql-dbg python3-pyqt5.qtx11extras-dbg python3-pyqt5.qsci python3-pyqt5.qsci-dbg python-pyqt5.qtsvg python3-pyqt5.qtsvg-dbg python-pyqt5.qtwebkit python-pyqt5.qtwebkit-db python3-pyqt5.qtwebkit python3-pyqt5.qtwebkit-dbg</code> | ||
===== Utilisation ===== | ===== Utilisation ===== | ||