我正在尝试使用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。在这种情况下,我可能会遗漏任何东西吗?
答案 0 :(得分:1)
这是通过运行来解决的:
sudo aptitude -f install libfreetype6-dev
然后选择no
降级已安装的libfreetype6版本。