user5621062
user5621062

Reputation:

PyQt4 installed but "ImportError: No module named 'PyQt4"' in ubuntu 16.04

I have installed PyQt4 using apt as follows:

sudo apt install python3-pyqt4

But I still get an error as:

ImportError: No module named 'PyQt4' 

when I do

import PyQt4

System specs:

Python 3.5.2
ubuntu 16.04 LTS

Checked other threads of https://stackoverflow.com/ where people have faced similar problems but solutions provided seem specific to Mac and Win installations. If somebody can kindly help.

Upvotes: 4

Views: 10345

Answers (1)

pri
pri

Reputation: 104

Replace your command with the following:

sudo apt-get install python3-pyqt4

Upvotes: 1

Related Questions