I followed the steps but still got ImportError: No module named ‘PyQt4’
sudo apt-get install libqt4-dev qt4-dev-tools python-qt4-dev pyqt4-dev-tools
sudo apt-get install python-qt4
sudo apt-get install python3-qt4
Any solution for me?
Thanks!
I followed the steps but still got ImportError: No module named ‘PyQt4’
sudo apt-get install libqt4-dev qt4-dev-tools python-qt4-dev pyqt4-dev-tools
sudo apt-get install python-qt4
sudo apt-get install python3-qt4
Any solution for me?
Thanks!
Hi,
I can correctly import PyQt4 with python2 but fail with python3.
So I suppose you are talking about the python3.
The command to instal QT4 with python3 is incorrect. Please update to this one:
sudo apt-get install python3-pyqt4
I can successfully import the QT module with python3 after executing the command above.
Thanks.