【问题标题】:Error Install Matplotlib for Python3 on Debian 9在 Debian 9 上为 Python3 安装 Matplotlib 时出错
【发布时间】:2017-05-12 19:21:22
【问题描述】:

我正在尝试使用 Debian 8 为 Python3 安装 MatPlotLib。pip3 命令要求缺少的依赖项:libfreetype。但是,当我尝试安装此软件包时会发生这种情况!

debnub@debhub:~$ sudo apt-get install libfreetype6-dev
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:
libfreetype6-dev : Depends: libfreetype6 (= 2.5.2-3+deb8u2) but 2.
6.3-3.2 is to be installed
E: Unable to correct problems, you have held broken packages.
debnub@debhub:~$

我尝试了很多不同的解决方案,包括使用 aptitude。在这种情况下,我可能会遗漏什么吗?

【问题讨论】:

  • 它主要与 python 相关,我只需要使用 pyplot,通常 pip3 可以工作,但在这种情况下我缺少依赖项
  • 请添加cat /etc/apt/sources.list的输出

标签: python linux bash matplotlib debian


【解决方案1】:

通过运行解决了这个问题:

sudo aptitude -f install libfreetype6-dev

然后选择no来降级安装的libfreetype6版本。

【讨论】:

    猜你喜欢
    • 2020-03-14
    • 1970-01-01
    • 2018-06-03
    • 1970-01-01
    • 2021-04-06
    • 2021-04-27
    • 1970-01-01
    • 1970-01-01
    • 2020-11-25
    相关资源
    最近更新 更多