什么是完整的conda-forge频道网址?

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

我正在尝试从Anaconda Enterprise环境中安装conda-forge软件包并且“标准”方法失败,因为conda正在搜索相对于我们的企业anaconda实例,而不是使用外部anaconda网址。 conda-forge频道的完整网址是什么?

这个环境中conda频道的默认基本网址是https://wwwdesign.anaconda.company.com/repository/conda,所以当我使用

channels:
    - conda-forge

我收到以下错误:

WARNING: The remote server could not find the noarch directory for the requested channel with url: https://wwwdesign.anaconda.company.com/repository/conda/conda-forge

我可以通过添加conda强制http://repo.anaconda.com/pkgs/main查看默认的公共anaconda频道,但我找不到conda-forge的等效网址。我试过https://anaconda.org/conda-forge/repo,但它不起作用(与上面类似的错误)。

python anaconda conda conda-forge
1个回答
6
投票

简短回答conda-forge的完全解析的网址是https://conda.anaconda.org/conda-forge/

我是如何找到它的在其他信息中,conda info会吐出您在conda中配置的完整通道URL。我用conda-forgeconda添加到我的工作站的conda config --add channels conda-forge并运行conda info。你会得到每个频道的两个网址,一个<OS>-64noarch,但似乎你可以剪掉它并使用https://conda.anaconda.org/<channel-name>/

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