【发布时间】: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