Pyqt4 in Ubuntu 20.04

user9151679 picture user9151679 · May 15, 2020 · Viewed 8.4k times · Source

How to install Pyqt4 in ubuntu 20.04
I have already tried all the commands:

sudo apt-get install python-qt4
sudo apt-get install libqt4-dev
sudo apt-get install pyqt4-dev-tools
sudo apt-get install pyqt4.qsci-dev
sudo apt install python3-pyqt4

But it kept on saying module has no installation candidate although pyqt5 is running smoothly but code is too long for changing it to pyqt5

Answer

user14032999 picture user14032999 · Aug 1, 2020

I am actually stucked to install something which required PyQt4 on Ubuntu 20.04, the only solution I've got is to install Qt4 Library that way

  1. sudo add-apt-repository ppa:rock-core/qt4

  2. sudo apt update

  3. sudo apt install libqt4-declarative libqt4* libqtcore4 libqtgui4 libqtwebkit4 qt4*

Hope that will help you a little bit more