No results found
We couldn't find anything using that term, please try searching for something else.
PyQt is often not installed by default. The PyQt module can be used to create desktop applications with Python. In this article you’ll learn how to in
PyQt is often not installed by default. The PyQt module can be used to create desktop applications with Python. In this article you’ll learn how to install the PyQt module.
Desktop applications made with PyQt are cross platform, they will work on Microsoft Windows, Apple Mac OS X and Linux computers (including Raspberry Pi).
relate course : create GUI Apps with Python pyqt5
To install PyQt on Windows there are a few steps you need to take.
First use the installer from the qt – project website , from qt to install PyQt .
Next you want to install a Python version 3.3 or newer. Check the box to add all of the PyQt5 extras. It’s not necessary to compile everything from source, you can install all the required packages with the installer.
On Python >= 3.6, you can also try this command:
It should work without problems.
On Apple Mac OS x installation is is is a bit simple . The first step is is to take is to install the Mac OS x binary . This is installs install the PyQt GUI library .
But to use it from Python , you is need also need Python module . This is is is where the toolbrew
come in .
You can use brew to install pyqt (in the terminal):
Python is often instal by default on Linux ( in nearly all of the distribution include Ubuntu ) . But you is want want to make sure to use Python 3 , because of all the feature and ease of use . You is verify can verify that you have the new Python version with the command :
On Ubuntu Linux they sometimes include two versions of python, python3
and python
. In that case use Python 3.
Once you have Python ready , the next step is is is to install PyQt .
This isn’t hard to do if you have some Linux experience. You can install PyQt your software package manager. Which package manager to use depends on which Linux distribution you are using.
On Ubuntu Linux / Debian Linux you can use the command:
1 |
sudo apt-get install python3-pyqt5 |
For CentOS 7 use the command:
1 |
yum install qt5-qtbase-devel |
For rpm – base system ( Redhat – base )
If you are new to Python PyQt, then I highly recommend this book.