How to install PyQT4 and what are the practical differences between PyQT4 and PyQT5?

Solution 1:

I emailed rivercomputing:

If I try to installed PyQt4 via pip, I get the following message:

$ pip install PyQt4 Downloading/unpacking PyQt4 Could not find any downloads that satisfy the requirement PyQt4 No distributions at all found for PyQt4 Storing complete log in /home/jon/.pip/pip.log

However, if I search for PyQt4, the package is clearly there:

$ pip search PyQt4 ... ... PyQt4 - Python bindings for the Qt cross platform GUI toolkit python-qt - Python compatibility wrapper for Qt Bindings ... ...

The pypi page for this package is also reachable (https://pypi.python.org/pypi/PyQt4/4.10.3); however, I did notice that the download statistics are at 0.

How can I install PyQt4 via pip?

And got the following "not constructive" reply:

You can't.

Solution 2:

I think to install PyQt4, first of all you need sip. Information can be available from the riverbank computing website.

or if you are using Ubuntu/debian, you can get easily from the repositories :

sudo apt-get install pyqt4-dev-tools

Solution 3:

I encountered the same problem. In the end I downloaded SIP and PyQt from riverbankcomputing.com, and installed them with:

python configure.py
make
make install