PyQt is often not installed by default. In this article you’ll learn how to install the PyQt module.

You can make desktop applications with PyQt. It’s cross platform, they will work on Windows, Mac OS X and Linux.

Related Course:
PyQt Desktop Apps with Python

How to install PyQt5 on Windows?

Use the installer from qt to install PyQt.

Install python 3.3, then check to add all of the PyQt5 extras. It’s not necessary to compile everything, you can install the packages with the installer.

On Python >= 3.6, you can also try

pip install pyqt5

It should work without problems.

How to install PyQt5 on Mac OS X?

Install the Mac OS X binary.

You can then use brew to install pyqt (in the terminal), brew install pyqt.

How to install PyQt5 on Linux?

Python is often installed by default on Linux. Make sure to use Python 3. You can check with

python --version

Then you can install PyQt your software package manager.

On Ubuntu Linux / Debian Linux you can use the command:

sudo apt-get install python3-pyqt5

For CentOS 7 use the command:

yum install qt5-qtbase-devel

For RPM-based systems

yum install PyQt5