尝试在 Ubuntu 12.10 上安装 python-scipy 时出现‘未满足的依赖关系’

尝试在 Ubuntu 12.10 上安装 python-scipy 时出现‘未满足的依赖关系’

当我sudo apt-get install python-scipy在 Ubuntu 12.10 机器上执行此操作时,我得到了这个:

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:
 python-scipy : Depends: python-numpy (>= 1:1.6.1) but it is not going to be installed
                Depends: python-numpy-abi9
                Depends: libgfortran3 (>= 4.6) but it is not going to be installed
                Depends: liblapack3 but it is not going to be installed or
                         liblapack.so.3 or
                         libatlas3-base but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

您知道如何解决这个问题吗?

谢谢

答案1

好吧,我已经安装了 scipy,所以这绝对是可能的。;-)

我认为您的软件包系统出了点问题 - 最近出现任何问题,例如安装崩溃或中止?或者,存在一些依赖性问题。

无论如何,每当我遇到这种情况时,我首先会尝试手动安装“未满足的依赖项”,一个接一个,因此您可以尝试安装python-numpy,然后libgfortran3,然后liblapack3,然后再试一次。sudo apt-get update所有这些之前的 a 也不会错。

答案2

我在 Ubuntu 14.04LTS 中遇到过此类问题。但我已通过另一种方式解决了这个问题。

以下是我为使事情正常运转所做的事情:

apt-get download libgfortran3
apt-get download liblapack3
apt-get download python-numpy

然后转到下载目录并安装:

sudo dpkg --force-depends -i libgfortran3_4.8.1-10ubuntu8_amd64.deb
sudo dpkg -i liblapack3_3.5.0-2ubuntu1_amd64.deb
sudo dpkg -i python-numpy_1:1.8.2-0ubuntu0.1_amd64.deb

相关内容