Install PyQt5 on Raspberry Pi
Install PyQt5 on Raspberry Pi Raspbian

Heads up! You've already completed this tutorial.

Before you start building GUI applications with the Raspberry Pi you will need to have a working installation of PyQt5 or PyQt6 on your system. If you don't have either set up yet, the following steps will guide you through how to do this on Windows.

Note that the following instructions are only for installation of the GPL licensed version of PyQt. If you need to use PyQt in a non-GPL project you will need to purchase an alternative license from Riverbank Computing to release your software.

Install PyQt5 on Raspberry Pi Raspbian

Installation on Raspberry Pi is very straightforward as packages for PyQt5 are available in Raspbian repositories. In Raspbian you can install either from the command line using apt. The package you are looking for is named python3-pyqt5.

You can also install these from the command line as follows --

sudo apt install python3-pyqt5

After install is finished, you should be able to run python (or python3) and import PyQt5 without errors.

Python 3.7.6
Type "help", "copyright", "credits" or "license" for more information.
>>> import PyQt5

You can now start creating Python GUI applications with PyQt5.

The complete guide to packaging Python GUI applications with PyInstaller.
[[ discount.discount_pc ]]% OFF for the next [[ discount.duration ]] [[discount.description ]] with the code [[ discount.coupon_code ]]

Purchasing Power Parity

Developers in [[ country ]] get [[ discount.discount_pc ]]% OFF on all books & courses with code [[ discount.coupon_code ]]
Well done, you've finished this tutorial! Mark As Complete
[[ user.completed.length ]] completed [[ user.streak+1 ]] day streak

Install PyQt5 on Raspberry Pi was written by Martin Fitzpatrick .

Martin Fitzpatrick has been developing Python/Qt apps for 8 years. Building desktop applications to make data-analysis tools more user-friendly, Python was the obvious choice. Starting with Tk, later moving to wxWidgets and finally adopting PyQt.