Score:0

Install PyQt4 on ubuntu 22.04

th flag

I am trying to install PyQt4 on ubuntu 22.04, because a specific software need python2 and PyQt4:

  1. install python2
sudo apt install python
  1. link python2 to python

Now, python -v is

Python 2.7.18 (default, Jul  1 2022, 10:30:50)
[GCC 11.2.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.

I think the python2 is sucessful installed.

  1. I follow this link to install PyQt4: Pyqt4 on Ubuntu 20.04 install
wget http://archive.ubuntu.com/ubuntu/pool/universe/q/qt-assistant-compat/libqtassistantclient4_4.6.3-7build1_amd64.deb
sudo apt-get install ./libqtassistantclient4_4.6.3-7build1_amd64.deb
wget http://archive.ubuntu.com/ubuntu/pool/universe/p/python-qt4/python-qt4_4.12.1+dfsg-2_amd64.deb
sudo apt-get install ./python-qt4_4.12.1+dfsg-2_amd64.deb
wget http://archive.ubuntu.com/ubuntu/pool/universe/p/python-pyaudio/python-pyaudio_0.2.11-1build2_amd64.deb
sudo apt-get install ./python-pyaudio_0.2.11-1build2_amd64.deb

It failed at sudo apt-get install ./python-qt4_4.12.1+dfsg-2_amd64.deb

The following packages have unmet dependencies:
 python-qt4 : Depends: python (< 2.8) but it is not installable
              Depends: python (>= 2.7~) but it is not installable
              Depends: python:any (< 2.8) but it is not installable
              Depends: python:any (>= 2.7.5-5~) but it is not installable
              Depends: sip-api-12.2 but it is not installable

My questions is:

Its seem that python 2.7.18 is sucessful installed, why the depends is still not installable

how to install depends sip-api-12.2? Its seems hard for ubuntu 22.04?

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.