How to install PyQT 5 on UBUNTU ?
-
wrote on 8 Aug 2014, 05:00 last edited by
I already have qt 5.2 with qt creator installed in my my machine which runs on ubuntu 12.04 LTS. Now i want to install PyQt in in that .. i have no clue where and how to start it. can i use pyqt with the existing qt creator installation.
i installed qt5.2 using the .run file
Pls Help me out
-
wrote on 11 Aug 2014, 15:14 last edited by
You should check this web. Following the instructions would give you a nice installation.
-
wrote on 21 May 2015, 13:15 last edited by
Tested in ubuntu 15.04
Download and Install Qtcreator:
Qt Online Installer for Linux 64-bit
Install python dev:
sudo apt-get install python-dev
Download and Install SIP:
sip-4.16.7.tar.gz Linux, UNIX, MacOS/X source
Set QT5 by default:
sudo apt-get install qt5-default.
Download and install PyQT:
PyQt-gpl-5.4.1.tar.gz Linux, UNIX, MacOS/X source -
wrote on 12 Sept 2015, 09:57 last edited by Swatto 9 Dec 2015, 12:23
Hello,
I followed the steps above but I still get the following error when trying to run a pyQT program:
***Traceback (most recent call last):
File "HelloWorld.py", line 10, in <module>
from PyQt5 import QtWidgets
ImportError: No module named PyQt5
(program exited with code: 1)
Press return to continue***RESOLVED:
It was because I was trying to run the script directly from Geany! - if I run it from the terminal using: python3 HelloWorld.py it works fine.