Skip to content

Installation des pré-requis pour coder avec Python 3 et PyQt5

Ce que l'on va faire ici

Nous allons voir ici les pré-requis pour coder avec Python 3 + PyQt5

Pré-requis pour PyQt5 apps

Les fondamentaux :

sudo apt-get update
sudo apt-get install python3
sudo apt-get install pyqt5-dev pyqt5-dev-tools

Librairies utiles

# Math
sudo apt-get install python3-numpy

# Port série
sudo apt-get install python3-serial

# PyQtgraph**

sudo apt-get install python3-pyqtgraph

ou

sudo pip3 install pyqtgraph

Librairies complémentaires PyQt5

sudo apt-get install python3-shapely python3-matplotlib python3-pyqt5.qtsvg

Divers

sudo apt-get install python3-svgwrite

Développement d'application PyQt5

sudo apt-get install qttools5-dev-tools

L'interface de conception graphique Designer s'ouvre avec :

/usr/lib/x86_64-linux-gnu/qt5/bin/designer

La conversion du fichier .ui en .py se fait avec :

pyuic5 -x nomfichier.ui -o nomfichier.py