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!
As mentioned in the comments, you need to install the
python-qt4package – no need to recompile it yourself.sudo apt-get install python-qt4