如何安装特定版本的conda软件包? [英] How can I install a particular version of a conda package?

查看:79
本文介绍了如何安装特定版本的conda软件包?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试安装 eccodes 软件包的v2.7.0.

I am trying to install the v2.7.0 of the eccodes package.

但这不起作用:

conda install -c conda-forge eccodes = 2.7.0

我可以在这里看到版本: https://anaconda.org/conda-forge/eccodes/files?version=2.7.0&page=2

I can see the versions here: https://anaconda.org/conda-forge/eccodes/files?version=2.7.0&page=2

我在语法上做错了什么?

What I am doing wrong with the syntax?

最新版本是2.13,我不需要.

The latest version is 2.13, which I don't want.

推荐答案

如果在首页上浏览所有软件包版本,您会发现它们的标签为'main'.但是,您要安装的版本带有标签"cf201901".

If you look through all of the package versions on the first page, you will notice that their label is 'main'. However, the version you want to install has the label 'cf201901'.

因此,您应该将安装命令更改为:

You should therefore change your install command to:

conda install -c conda-forge/label/cf201901 eccodes=2.7.0

通过在频道中包含标签,便可以找到正确的较早版本.

By including the label in the channel it will be able to find the correct older version.

或者,您可以直接从所浏览的网站直接复制旧软件包的链接,然后直接运行:

Alternatively, you can copy the link of the old package directly from the website you were browsing and just run:

conda install https://anaconda.org/conda-forge/eccodes/2.7.0/download/osx-64/eccodes-2.7.0-0.tar.bz2

如果要为osx安装2.7.0版

If you want to install version 2.7.0 for osx

这篇关于如何安装特定版本的conda软件包?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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