Установите python-mysqldb для Python 2.7 в Ubuntu 20.04 - неудовлетворенные зависимости

Я пытаюсь установить python-mysqldb для Python 2.7 в Ubuntu 20.04:

$ sudo add-apt-repository 'deb http://archive.ubuntu.com/ubuntu bionic main'
$ sudo apt update
$ sudo apt install -y python-mysqldb

Я получаю следующую ошибку:

Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 python-mysqldb : Depends: python (< 2.8)
                  Depends: python (>= 2.7~)
                  Depends: python:any (< 2.8)
                  Depends: python:any (>= 2.7.5-5~)
E: Unable to correct problems, you have held broken packages.

Есть идеи, как это исправить?

В моем Ubuntu 20.04 установлены Python 2.7.18 и Python 3

1
задан 3 February 2022 в 09:29

0 ответов

Другие вопросы по тегам:

Похожие вопросы: