I am trying to install PyQt4
on ubuntu 22.04, because a specific software need python2 and PyQt4:
- install python2
sudo apt install python
- 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.
- 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?