我正在尝试通过以下命令安装 python3-matplotlib:
sudo apt install python3-matplotlib
但终端返回这个错误:
Reading package lists... Done
Building dependency tree
Reading state information... Done
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:
python3-matplotlib : Depends: python3 (< 3.8) but 3.8.2-3 is to be installed
Depends: python3-kiwisolver but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
我试图通过以下方式解决它:
apt-get update
apt-get upgrade
sudo aptitude install python3-matplotlib
但返回:
The following NEW packages will be installed:
fonts-lyx{a} libjs-jquery-ui{a} python-matplotlib-data{a} python3-cycler{a} python3-dateutil{a} python3-matplotlib{b} python3-pyparsing{a}
0 packages upgraded, 7 newly installed, 0 to remove and 26 not upgraded.
Need to get 10.1 MB of archives. After unpacking 28.0 MB will be used.
The following packages have unmet dependencies:
python3-matplotlib : Depends: python3 (< 3.8) but 3.8.2-3 is installed
Depends: python3-kiwisolver but it is not installable
The following actions will resolve these dependencies:
Keep the following packages at their current version:
1) python3-matplotlib [Not Installed]
如何解决?
PS:这是我的操作系统的信息:
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux bullseye/sid
Release: 8.11
Codename: jessie