Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ImportError: No module named PyQt4.QtCore

Tags:

I've reïnstalled my ssh server, so I also need to reïnstall my Python packages.

I did that, but I still get the error:

ImportError: No module named PyQt4.QtCore 

I've already successfully installed:

sudo apt-get install libqt4-dev 

But still it don't work, so I tried the installation instruction of PyQt4

So I've tried to install SIP first, but when I run "make" (see end of this page, "Building")

But I get this error:

make[1]: Entering directory `/home/francis/Downloads/sip-4.12.4/sipgen' g++  -o sip main.o transform.o gencode.o extracts.o export.o heap.o parser.o lexer.o  make[1]: g++: Command not found make[1]: *** [sip] Error 127 make[1]: Leaving directory `/home/francis/Downloads/sip-4.12.4/sipgen' make: *** [all] Error 2 

What do I have to do? Or is there an other way to install PyQt4?

Thanks!

like image 329
Francis Michels Avatar asked Aug 19 '11 09:08

Francis Michels


1 Answers

As mentioned in the comments, you need to install the python-qt4 package - no need to recompile it yourself.

sudo apt-get install python-qt4

like image 95
Kimvais Avatar answered Sep 23 '22 09:09

Kimvais