版本名称为“custom"的 conda 包 [英] conda packages with version name of 'custom'
问题描述
我在使用conda search anaconda
的时候发现了几个custom版本的包,如下图:
When I using conda search anaconda
I found a few custom version packages, shown as follow:
Fetching package metadata: ....
anaconda 1.6.0 np17py33_0 defaults
... ... ...
4.0.0 np110py35_0 defaults
4.0.0 np110py34_0 defaults
4.0.0 np110py27_0 defaults
custom py35_0 defaults
custom py34_0 defaults
custom py27_0 defaults
请注意,这三个 custom 版本 pkg 显示在 conda search anaconda
结果的末尾,因此它们被 conda
,这也会影响 conda install anaconda
结果(所以我必须使用 conda install anaconda=4.0.0
).
Note that these three custom version pkgs are shown at the end of conda search anaconda
results, so they are considered the newest version by conda
, which also affects conda install anaconda
results (so I have to using conda install anaconda=4.0.0
).
然后 conda info anaconda=custom
给出以下结果:
Then conda info anaconda=custom
gives following results:
Fetching package metadata: ....
anaconda custom py35_0
----------------------
file name : anaconda-custom-py35_0.tar.bz2
name : anaconda
version : custom
build number: 0
build string: py35_0
channel : defaults
size : 3 KB
date : 2016-03-14
license : BSD
md5 : 47c237b38bfc175cb73aed8b8b33ade7
space : python
installed environments:
dependencies:
python 3.5*
anaconda custom py34_0
----------------------
file name : anaconda-custom-py34_0.tar.bz2
name : anaconda
version : custom
build number: 0
build string: py34_0
channel : defaults
size : 3 KB
date : 2016-03-14
license : BSD
md5 : 767a59923372d998b8c83fb16ac035a1
space : python
installed environments:
dependencies:
python 3.4*
anaconda custom py27_0
----------------------
file name : anaconda-custom-py27_0.tar.bz2
name : anaconda
version : custom
build number: 0
build string: py27_0
channel : defaults
size : 3 KB
date : 2016-03-14
license : BSD
md5 : 8288aef529d5a46d07bd84b4fcf4308a
space : python
installed environments:
dependencies:
python 2.7*
但是我不知道/记得这三个包是如何以及为什么出现在这台计算机上的,谁能解释一下:
BUT I don't know/remeber HOW and WHY these three packages appear in this computer, can anyone explain:
- 首先如何创建这些自定义版本的 pkg?
- 这些 自定义 版本的 pkg 如何/为何显示在
conda 搜索
结果中? - 如何删除这些自定义版本的 pkg?
- How these custom version pkgs are created in the first place?
- How/Why these custom version pkgs are shown in the
conda search
results? - How to remove these custom version pkgs?
推荐答案
存在的任何包的一个 custom
版本(现在,在官方 repos 中)用于 anaconda
包.
The one custom
version of any package that exists (right now, in the official repos) is for the anaconda
package.
这就是原因... anaconda
conda 包是 metapackages,这意味着它们是包的包——或者说没有真正的源代码并且只引入的包一堆依赖.每个 anaconda
包都有每个子包固定到该子包的明确和特定版本.这是因为 Continuum 对该组包(以及那些特定版本)的互操作性进行了广泛的测试.
Here's there reason... The anaconda
conda packages are metapackages, meaning they are packages of packages--or packages that have no real source code and only bring in a bunch of dependencies. Each anaconda
package has every sub-package pinned to an explicit and specific version of that sub-package. That's because Continuum does extensive testing on the interoperability of that set of packages (and those specific versions).
现在,通过 Anaconda 安装程序或安装 Miniconda 然后 conda install anaconda
安装 anaconda 后,您就有了一组包含所有这些测试保证的软件包.您没有理由必须坚持使用这组锁定的软件包——您可以安装任何您想要的任何版本.不过,您不再拥有可识别版本的 Anaconda 发行版.您已经自定义了它.因此,当你运行 conda list
并且 anaconda
包的版本显示 custom
时,你就知道你已经偏离了Anaconda 发行版经过了强大的互操作性测试.
Now, after you've installed anaconda, either through the Anaconda Installer or installing Miniconda and then conda install anaconda
, you have a set of packages with all of these tested guarantees. There's no reason you have to stick to this locked set of packages--you can install anything and any version you want. You no longer have a version-identifiable Anaconda Distribution though. You've customized it. Thus, when you run conda list
and the version of the anaconda
package shows custom
, you know you've diverged from the set of packages in the Anaconda Distribution that are robustly tested for interoperability.
您的 conda search anaconda
查询只是反映了这是如何实现的工件.您会注意到在该查询中首先列出了 custom
包,这意味着它们在比较版本时具有最低的排序顺序.因此,如果您在脱离专门固定的 anaconda 软件包后运行 conda update anaconda
,您将回到 Anaconda 发行版的编号版本.
Your conda search anaconda
query just reflects an artifact of how this is implemented. You'll notice in that query that custom
packages are listed first, meaning they have the lowest sort order when comparing versions. Thus, if you run conda update anaconda
after you've diverged from the specifically-pinned anaconda packages, you'll be back to a numbered version of the Anaconda Distribution.
这篇关于版本名称为“custom"的 conda 包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!