我无法安装 python-numpy

我无法安装 python-numpy

我有 Ubuntu 14.04,但无法安装 numpy。

这是我的尝试:

ohad@ohad-Vostro-3300:~$ sudo apt-get install python-numpy
[sudo] password for ohad: 
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-numpy : Depends: liblapack3 but it is not going to be installed or
                         liblapack.so.3
E: Unable to correct problems, you have held broken packages.
ohad@ohad-Vostro-3300:~$ sudo apt-get install liblapack3
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:
 liblapack3 : Depends: libgfortran3 (>= 4.6) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
ohad@ohad-Vostro-3300:~$ 

谢谢,

答案1

输入这两个命令:

sudo apt-get clean
sudo apt-get 自动清理

尝试修复损坏的依赖关系:

sudo apt-get -f 安装
sudo dpkg--configure-a

然后再次输入sudo apt-get -f install

这应该可以解决您的依赖问题,现在您可以安装您的包了。

答案2

对我来说,之前安装包是件好事python-dev

相关内容