Pyqt4 in Ubuntu 20.04

13,213

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

Share:
13,213
user9151679
Author by

user9151679

Updated on June 29, 2022

Comments

  • user9151679
    user9151679 almost 2 years

    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

  • Adam
    Adam almost 3 years
    E: Could not find libqt4-declarative package E: The libqtcore4 package is not a candidate for installation E: The libqtgui4 package is not a candidate for installation E: Could not find libqtwebkit4 package