首次出现在 conda install ... proc=*=cpus ... -- 这个等号星号等于 (=*=) 语法是什么意思?

问题描述 投票:0回答:1

在安装 conda 包时,我注意到这个 =*= 语法,但是在谷歌搜索和检查 SO 时,我无法找到关于这里发生的事情的解释。

conda install -c rapidsai -c nvidia -c numba -c conda-forge \
    ucx-proc=*=gpu \ #HERE
    ucx ucx-py cudatoolkit=10.1

通常我看到使用等号来安装特定版本,例如cudatoolkit=10.1,但我无法推断=*=gpu 可能意味着什么。

python bash syntax operators conda
1个回答
0
投票

合并评论并直接回答你的问题,就是说

“使用‘任何版本’和

ucx-proc
build-string 安装名为
gpu
的包。”

如@cel所述,语法为

pkg-name=version=build-string
.

© www.soinside.com 2019 - 2024. All rights reserved.