python - 如何修复 "E: Package ' libatlas-dev'没有安装候选者“在为 Scikit 学习安装 Scipy 时?

标签 python scikit-learn scipy ubuntu-18.04

我怎么解决这个问题

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

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

最佳答案

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

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

E: Package libatlas-dev has no installation candidate

所以请尝试使用 sudo apt-get install libatlas-base-dev 代替。

关于python - 如何修复 "E: Package ' libatlas-dev'没有安装候选者“在为 Scikit 学习安装 Scipy 时?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52837387/

相关文章:

python - scikit-learn GMM 产生正对数概率

python - 来自 Theano 表达式的梯度,用于 Keras 中的过滤器可视化

python - Sklearn 数字数据集

python - 使用 scikit-learn 从文档集中查找仅选定单词的 Tf-Idf 分数

python - numpy数组中的元素排列

python - scipy.interpolate.Rbf() 的插值不准确

Python - 获取每周、每月、每季度、六个月、每年等的第一个和最后一个观察结果

python - 如何获取迭代器的内容?

python - 如何从python中的字典中删除所有0?

Python - 异步日志记录