How to install PyQt5 in Python 3 (Ubuntu 14.04)

eri0o picture eri0o · Apr 21, 2016 · Viewed 90.5k times · Source

I need to port some code that's Python2+PyQt4 to Python3+PyQt5.

I started installing pip3

sudo apt-get install python3-pip

Works great. Tried

sudo pip3 install PyQt5
Downloading/unpacking PyQt5
  Could not find any downloads that satisfy the requirement PyQt5
Cleaning up...
No distributions at all found for PyQt5

Online I find the following steps:

http://pyqt.sourceforge.net/Docs/PyQt5/installation.html

But they are too many. What's the easiest way to Install PyQt5 along with Python3 in Ubuntu 14.04 ?

Answer

The Compiler picture The Compiler · Apr 21, 2016

Why not simply install it via apt-get?

sudo apt-get install python3-pyqt5

Otherwise you'd have to compile PyQt (and potentially Qt) by hand, which is cumbersome.