【问题标题】:How to fix "E: Package 'libatlas-dev' has no installation candidate" While installing Scipy for Scikit learn?如何在安装 Scipy for Scikit learn 时修复“E: Package 'libatlas-dev' has no installation Candidate”?
【发布时间】:2019-03-21 02:24:42
【问题描述】:

如何解决我给的这个问题

sudo apt-get install python-setuptools python-scipy libatlas-dev libatlas3-base

要安装 scipy 来安装 scikit learn 并得到这样的错误

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package libatlas-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  libatlas-base-dev:i386 libatlas-base-dev

E: Package 'libatlas-dev' has no installation candidate

我已尝试更新,但似乎没有任何效果。

【问题讨论】:

标签: python scikit-learn scipy ubuntu-18.04


【解决方案1】:

我尝试在我的树莓派pi 上安装libatals-dev,而我的pi 告诉我这个

正在读取包列表...完成构建依赖树读取 状态信息...完成

libatlas-dev 不可用,但被另一个包引用。 这可能意味着包丢失、已过时或 只能从其他来源获得 但是,以下软件包替换了它: libatlas-base-dev

E:包libatlas-dev没有安装候选

所以请改用sudo apt-get install libatlas-base-dev

【讨论】:

  • 尝试安装libcblas-dev,但没有安装候选,在安装libatlas-base-dev 时解决了缺少的依赖关系。谢谢!
【解决方案2】:

您可能已被 Google 误导为按照 https://scikit-learn.org/0.16/install.html 等网页上的说明进行操作。如果目标是安装scikit-learn,根据https://scikit-learn.org/stable/install.html,您最好只使用pip3 install -U scikit-learn。这就是我在 Ubuntu 20.04.1 LTS 上所做的。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2012-11-02
    • 2021-10-07
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-03-08
    • 2019-11-14
    相关资源
    最近更新 更多