Search code examples
python-3.xubuntu-14.04pyqt5

How to install PyQt5 in Python 3 (Ubuntu 14.04)


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 ?


Solution

  • 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.