5

I want to install PyQt5 on Ubuntu 14.04.2. Once downloaded and uncompressed, I run python configure.py as it is mentioned on the previous link. However, it asks me to install QT 5 or later. Which thing I did.

When I come back to run the command above, I get the same error:

begueradj@begueradj-hacker:~/Bureau/PyQt-gpl-5.4.1# python configure.py 
Querying qmake about your Qt installation...
Error: PyQt5 requires Qt v5.0 or later. You seem to be using v4.8.6. Use the
--qmake flag to specify the correct version of qmake.

However, after Qt5 installation, when I run this: qmake --version

I get this:

QMake version 2.01a
Using Qt version 4.8.6 in /usr/lib/x86_64-linux-gnu

How to make use of the new Qt5 version instead ? (it is installed in /opt/qt/)

How to resolve this ?

2 Answers2

4

As @saiarcot895 said through his comment months ago, Qt 5 is included in the default repositories. I run sudo apt-get install qt5-default . The problem is fixed

1

Just so that another unfortunate soul doesn't go on the same wild goose chase, as noted by a comment here, as of Feb 2015 you can now do

sudo apt-get install python3-pyqt5

Worked like a charm for my script in pycharm

Frikster
  • 205