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 [29/12/2015 08:59]
Hypathie [Installer Eric6 python]
utilisateurs:hypathie:tutos:python-trucs-et-machins [31/12/2015 12:00]
Hypathie [Installer Eric python IDE]
Ligne 44: Ligne 44:
 <code retour>​Python 3.4.2</​code>​ <code retour>​Python 3.4.2</​code>​
  
-===== Installer Eric6 python===== 
  
 +====Changer de version de python avec update-alternatives ====
  
-  * D'​abord on télécharge Eric6 http://​eric-ide.python-projects.org/​eric-download.html+  * Version actuelle pour tout le système ​:
  
-  * Référence sur l'​installation : https://​github.com/​davy39/​eric+<code root>​python --version<​/code>
  
-====installation ​des dépendances====+  * Voir où son les exécutable ​des version de python installées sur le système : 
  
-===qt5 et qt4===+<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>​
  
-  * **Qt5** ​Depuis le site officiel: http://​www.qt.io/​download-open-source/#​section-2+  * Ajouter les version de python disponible à update-alternatives ​:
  
-On télécharge la version correspondante à son système ​+<code root>​update-alternatives --list python</​code>​ 
 +<code retour>​update-alternativeserreur: pas d'​alternatives pour python</​code>​
  
-{{http://​pix.toile-libre.org/​upload/​original/​1451369569.png}} 
  
-<code root>chmod +x le-fichier-qt5.xx.run</​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>​
  
-<code root>​./​le-fichier-qt5.xx.run</​code>​+  * Pour changer de version de python :
  
-<note+<code root>​update-alternatives --config python</​code
-FIXME+On choisit la version 3.
  
-  * Depuis les sources ​ :+===== Installer Eric python IDE=====
  
-A voir pour installer l'IDE qtcreator ​: http://famedsolutions.com/index.php/2015/05/02/installing-qt5-on-debian-jessie/+  * 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/
  
-</​note>​+====Installation simple de Eric5 depuis les sources====
  
-  * **qt4** : Depuis dans les dépôts : 
  
-On cherche la version voulue :+1) On vérifie que le système est sous python2 (voir ci-dessus)
  
-<code root>​apt-cache search qt4</​code>​+2) On installe depuis les sources 
 +<code root>​apt-get install eric</​code>​ 
 +(cela installe aussi le paquet ''​eric-api-files''​
  
-Et on installe :+===Désinstaller Eric installé depuis les sources===
  
-<code root>​apt-get ​install qt4-qtconfig</​code>​+<code root>​apt-get ​remove eric</​code>​
  
 +====Installer Eric6 ====
  
-===sip=== +=== Installer les dépendances depuis les dépôts===
-Il faut installer sip pour pouvoir installer PyQt :)+
  
-  * Voir : http://pyqt.sourceforge.net/​Docs/​sip4/+<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 user>​wget http://​netcologne.dl.sourceforge.net/​project/​pyqt/​sip/​sip-4.17/​sip-4.17.tar.gz</​code>​+===Installer eric6===
  
-<code user>tar xzvf sip-4.17.tar.gz -C ~</​code>​ +  * On créer un dossier d'​installation dans le répertoire courant de l'​utilisateur :
-<code user>cd sip-4.17/</​code>​ +
-<code user>​python configure.py</​code>​ +
-<code user>​make</​code>​ +
-<code root>​make install</​code>​+
  
 +<code user>​mkdir Eric6Install && cd Eric6Install</​code>​
  
 +  * 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>​
  
-===PyQt5 et PyQt4=== +  ​On décompresse le dossier téléchargé :
-  * **PyQt4**+
  
-<​code ​root>apt-get install python-qt4</​code>​+<​code ​user>tar -zxvf eric6-6.1.0.tar.gz</​code>​
  
-  * **PyQt5** +  * On se déplace dans le dossier décompressé ​:
-  +
-Voir https://​riverbankcomputing.com/​software/​pyqt/​download5+
  
-<code user>wget http://​skylink.dl.sourceforge.net/​project/​pyqt/​PyQt5/​PyQt-5.5.1/PyQt-gpl-5.5.1.tar.gz</​code>​+<code user>cd eric6-6.1.0/</​code>​
  
-<code user>tar xzvf PyQt-gpl-5.5.1.tar.gz -C ~</​code>​+  * On lance l'​installation de eric6 :
  
-<​code ​user>cd PyQt-gpl-5.5.1/</​code>​ +<​code ​root>python3 install.py</​code>​
-<code user>​python configure.py</​code>​ +
-<code user>​make</​code>​ +
-<code root>​make install</​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.
  
-  * Pour vérifier+Cleaning up old installation ...
  
-<code user>​echo "​import PyQt4" |python</​code>​ +Creating configuration file ...
-<code user>​echo "​import PyQt5" |python</​code>​+
  
-S'il n'y a aucun retour c'est que tout va bien 8-)+Compiling user interface files ...
  
-===qscintilla2===+Compiling source files ...
  
-<code user>​wget http://​skylink.dl.sourceforge.net/​project/​pyqt/​QScintilla2/​QScintilla-2.9.1/​QScintilla-gpl-2.9.1.tar.gz</​code>​ +Installing eric6 ...
-Voir le site officiel: https://​riverbankcomputing.com/​software/​qscintilla/​download+
  
-On décompresse l'​archive : +Installation complete.</​code>​
-<code user>tar xzvf QScintilla-gpl-2.9.1.tar.gz</​code>​+
  
-On installe :+  * On peut déjà lancer Eric6 en tant que root 
 +<code root>​eric6</​code>​
  
-<code user>cd Qt4Qt5</code>+{{http://​pix.toile-libre.org/​upload/​original/​1451467749.png?​00}}
  
-<code user>​qmake qscintilla.pro</​code>​+===Lancer eric6 en tant utilisateur===
  
-<​code ​user>make</​code>​ +<​code ​root>chmod a+w -R ~/.eric6</​code>​
-(C'est long ....)+
  
-<​code ​root>make install</​code>​ +<​code ​user>eric6</​code>​
-====Installer Eric6 ====+
  
-  * Pour obtenir la version 6 
  
-<code user>​wget ​http://netix.dl.sourceforge.net/project/eric-ide/eric6/​stable/​6.1.0/​eric6-6.1.0.tar.gz</​code>​+{{http://pix.toile-libre.org/upload/original/1451467749.png?00}}
  
 +Et voilà 8-)
  
-  * On décompresse l'​archive dans le répertoire courant+===Ajouter eric6 fr ===
  
-<code user>tar xzvf eric6-6.1.0.tar.gz -C ~</​code>​+<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/</​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===
  
-<code user>chmod +x install.py</​code>​+  * On se déplace dans le fichier ''​tmp/​eric6-6.1.0''​ 
 +<code user>cd tmp/​eric6-6.1.0/</​code>​
  
-<​code ​user>./install.py</​code>​+<​code ​root>python3 uninstall.py</​code>​
  
-<​code ​user></​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>​
  
-<code user></​code>​ 
-===== Utilisation ===== 
  
  
utilisateurs/hypathie/tutos/python-trucs-et-machins.txt · Dernière modification: 31/12/2015 12:00 par Hypathie

Pied de page des forums

Propulsé par FluxBB