logo Debian Debian Debian-France Debian-Facile Debian-fr.org Forum-Debian.fr Debian ? Communautés logo inclusivité

Debian-facile

Bienvenue sur Debian-Facile, site d'aide pour les nouveaux utilisateurs de Debian.

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 → ODT PDF Export

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentes Révision précédente
Prochaine révision
Révision précédente
utilisateurs:hypathie:tutos:python-trucs-et-machins [30/12/2015 10:31]
Hypathie [Installer Eric python IDE]
utilisateurs:hypathie:tutos:python-trucs-et-machins [31/12/2015 12:00] (Version actuelle)
Hypathie [Installer Eric python IDE]
Ligne 73: Ligne 73:
  
 ===== Installer Eric python IDE===== ===== Installer Eric python IDE=====
 +
 +  * Références : http://​eric-ide.python-projects.org/​eric-download.html
 +  * Wiki d'​utilisation de Eric IDE : http://​ceg.developpez.com/​tutoriels/​pyqt/​initiation-eric-et-qtdesigner/​
  
 ====Installation simple de Eric5 depuis les sources==== ====Installation simple de Eric5 depuis les sources====
- 
  
  
Ligne 84: Ligne 86:
 (cela installe aussi le paquet ''​eric-api-files''​ (cela installe aussi le paquet ''​eric-api-files''​
  
-  * Désinstaller Eric installé depuis les sources ​:+===Désinstaller Eric installé depuis les sources=== 
 <code root>​apt-get remove eric</​code>​ <code root>​apt-get remove eric</​code>​
  
-====Installation manuelle de Eric6 ==== +====Installer ​Eric6 ====
- +
-  * On crée un dossier temporaire d'​installation dans le répertoire courant et on se place dedans: +
- +
-<code user>​mkdir tmp && cd tmp</​code>​ +
-  +
-  * Installation de Qt sur une Jessie 64 bits : +
- +
-<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>​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 root>ln -s /​opt/​Qt/​5.5/​gcc_64/​bin/​qmake /​usr/​bin/​qmake</​code>​ +
- +
-  +
- +
-  * Installation à neuf de sip : +
- +
-On vérifie qu'une ancienne version de sip n'est pas installée : +
-<code user>ls /​usr/​lib/​python3/​dist-packages/​sip*</​code>​ +
-Si la commande liste des fichiers : +
-<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 root>​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>​ +
- +
-  * Installation de PyQt-gpl-5.5.1 : +
- +
-<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 root>​make</​code>​ +
-<code root>​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 : +
- +
- +
-<code user>cd tmp/</​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 root>​make</​code>​ +
-<code root>​make install</​code>​ +
-<code user>cd ../​designer-Qt4Qt5</​code>​ +
-<code user>​qmake designer.pro</​code>​ +
-<code root>​make</​code>​ +
-<code root>​make install</​code>​ +
- +
-<code user>cd ../​Python</​code>​ +
-<code user>​python3 configure.py --pyqt=PyQt5</​code>​ +
-<code root>​make</​code>​ +
-<code root>​make install</​code>​ +
- +
-  * Installation de eric6 : +
- +
-<code user>cd ~/​tmp</​code>​ +
-<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 user>cd eric6-6.1.0/</​code>​ +
-<code root>​python3 install.py</​code>​ +
-<code root>​python3 install-i18n.py</​code>​ +
- +
-<code user>​chmod a+w -R ~/​.eric6</​code>​ +
-<note tip> +
-**Désinstaller** +
- +
-  * On désinstalle Qt : +
-<code root>cd /​opt/​Qt</​code>​ +
-<code root>​./​MaintenanceTool</​code>​ +
- +
-  * On supprime le lien symbolique vers Qt +
- +
-<code root>ls -la /​usr/​bin/​qmake</​code>​ +
-<code root>​lrwxrwxrwx 1 root root 9 sept. 20  2014 /​usr/​bin/​qmake -> qtchooser</​code>​ +
-<code user>rm /​usr/​bin/​qmake</​code>​ +
- +
-  * On supprime sip +
- +
-<code root>​apt-get autoremove python3-sip</​code>​ +
-<code root>rm -r /​usr/​lib/​python3/​dist-packages/​PyQt5/​uic/​widget-plugins</​code>​ +
-<code root>​apt-get autoremove python-sip</​code>​ +
-<code root>rm -r /​usr/​lib/​python3/​dist-packages/​sip*</​code>​ +
- +
-  * On supprime PyQt5 +
-<code root>rm -r /​usr/​lib/​python3/​dist-packages/​PyQt5/</​code>​ +
- +
-  * On supprime QScintilla :  +
- +
-  * On supprime eric6 : +
-<code root>rm -r /​usr/​local/​bin/​eric6</​code>​ +
-<code root>rm -r /​usr/​share/​applications/​eric6.desktop</​code>​ +
-<code root>rm -r /​usr/​share/​applications/​eric6_webbrowser.desktop</​code>​ +
-</​note>​ +
- +
-====Installer ​eric6 avec les dépendances venant des dépôts de Jessie ​====+
  
 === Installer les dépendances depuis les dépôts=== === Installer les dépendances depuis les dépôts===
Ligne 264: Ligne 153:
 <code root>​eric6</​code>​ <code root>​eric6</​code>​
  
-{{http://​pix.toile-libre.org/​upload/​original/​1451467749.png?​500}} +{{http://​pix.toile-libre.org/​upload/​original/​1451467749.png?​00}} 
-===== Utilisation ​=====+ 
 +===Lancer eric6 en tant utilisateur=== 
 + 
 +<code root>​chmod a+w -R ~/​.eric6</​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>​ 
 + 
 +===Installer Le plugin Django=== 
 + 
 +  * Voir : http://​blog.mattwoodward.com/​2012/​08/​manually-installing-django-plugin-for.html 
 +  * Depuis les références : http://​eric-ide.python-projects.org/​plugins6/​repository.xml 
 +On cherche l'url de django 
 +<​code><​Plugin status="​stable"><​Name>​Project,​ Django</​Name><​Short>​Basic support for Django projects.</​Short><​Description>​ 
 +        This plug-in implements support for Django projects. It includes 
 +        API files for the various Django versions and a Django menu offering 
 +        various Django related actions from within eric5. 
 +    </​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''​\\  
 + 
 +Eric6 redémarre et on retourne dans l'​onglet ''​Plugin''​ > ''​Référenciel de plugins...''​\\ 
 + 
 +On sélectionne le plugin, et on l'​installe ''​Download & Install''​ comme ceci\\ 
 + 
 + 
 +{{http://​pix.toile-libre.org/​upload/​original/​1451559491.png?​900}} 
 + 
 +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>​ 
  
  
utilisateurs/hypathie/tutos/python-trucs-et-machins.1451467919.txt.gz · Dernière modification: 30/12/2015 10:31 par Hypathie

Pied de page des forums

Propulsé par FluxBB