为什么在Anaconda Cloud上有多个安装命令? [英] Why are there multiple install commands on Anaconda Cloud?

查看:66
本文介绍了为什么在Anaconda Cloud上有多个安装命令?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Anaconda Cloud中搜索软件包时,通常可以使用多个命令来安装软件包.例如,

When searching a package in Anaconda Cloud, there are often multiple commands one could use to install a package. For example,

conda install -c conda-forge xxx 
conda install -c conda-forge/label/gcc7 xxx 
conda install -c conda-forge/label/cf201901 xxx

它们之间有什么区别?

推荐答案

标签

渠道维护者可以选择添加标签他们的软件包版本.Anaconda Cloud建议将标签用作用于组织开发周期的工具.标签的含义完全取决于渠道维护者,因此没有涵盖所有内容的一般性答案.如果未提供标签,则会分配默认的 main .

Labels

Channel maintainers have an option to add labels to their package builds. Anaconda Cloud suggests using labels as a tool for organizing the development cycle. What the labels mean is totally up to the channel maintainer, so there's no general answer that will cover it all. When a label isn't provided, then default main is assigned.

让我们看一下从您的示例中获取的特定用例.Conda Forge渠道维护人员使用 gcc7 标签来指定在与它们在 main 标记下提供的软件包不同的工具链下编译的软件包.此 gcc7 工具链旨在更紧密地匹配官方渠道所使用的工具(从 -c默认值中获得的信息),从而生成兼容的二进制文件.您可以在此问题在Conda Forge存储库上阅读.

Let's look at a specific use case taken from your example. The gcc7 label is used by the Conda Forge channel maintainers to designate packages that have been compiled under a different toolchain than the packages they provide under their main tag. This gcc7 toolchain is designed to more closely match that which is used by the official channels (what you'd get from -c defaults) and thereby yield binaries that are compatible. You can read all about it in this issue on the Conda Forge repo.

这篇关于为什么在Anaconda Cloud上有多个安装命令?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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