为什么 conda update 会降级某些库 [英] why does conda update downgrade some libraries

查看:20
本文介绍了为什么 conda update 会降级某些库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于 m,在 OS X 上,conda update --all 通常会降级库 - 以及更新许多库.

For m, on OS X, conda update --all often downgrades libraries - along with updating many.

这很常见吗?或者可能在我的设置中?

Is this usual? Or something possibly in my setup?

今年早些时候,它是枕头好几个月了.

Earlier this year, it was pillow for many months.

令人惊讶的是,今天它是几个与 HDF5 相关的库,numba 和 llvmlite.

Surprisingly, today it was several of the HDF5 related libraries, numba and llvmlite.

所以 conda update numba 将 numba 带回最新版本,其他 8 个库依此类推,但为什么 conda update --all 不这样做还是这个?

So conda update numba brings numba back to the most recent version, and so on with the other 8 libraries, but why doesn't conda update --all do this anyway?

推荐答案

这是一个兼容性问题.Anaconda 是一组稳定的软件包.当你更新 Anaconda 时,你会更新到这个稳定的列表.

It's a compatibility issue. Anaconda is a stable set of packages. When you update Anaconda, you update to this stable list.

但是,当您更新单个软件包时,它们可能会导致与 Anaconda 发行版的其余部分不兼容,因此它们被认为不稳定.这就是为什么当您使用 conda update --all 时,它会将您带到最新的稳定 Anaconda 发行版,该发行版可能有也可能没有您想要的单个软件包的版本.

However, when you update individual packages, they might cause incompatibility issues with the rest of the Anaconda distribution so they aren't considered stable. That's why when you use conda update --all, it gets you to the latest stable Anaconda distribution, which might or might not have the version of the individual package you wanted.

请参见此处:https://github.com/ContinuumIO/anaconda-issues/issues/39

此行为已更改.它现在尝试增加所有包的版本(主要/次要版本之间的 Python 除外),以便没有包相互不兼容.

This behavior has changed. It now tries to increase the version of all packages (except Python between major/minor version) such that no packages will be incompatible with each other.

请参见此处:http://continuum.io/blog/advanced-conda-part-1#conda-update-all

这篇关于为什么 conda update 会降级某些库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆