简体   繁体   English

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

[英]What is the full conda-forge channel url?

I'm trying to install conda-forge packages from within an Anaconda Enterprise environment and the "standard" approach is failing because conda is searching relative to our enterprise anaconda instance, rather than using the external anaconda url. 我正在尝试从Anaconda Enterprise环境中安装conda-forge软件包并且“标准”方法失败,因为conda正在相对于我们的企业anaconda实例进行搜索,而不是使用外部anaconda网址。 What is the full url for the conda-forge channel? conda-forge频道的完整网址是什么?

The default base url for conda channels in this environment is https://wwwdesign.anaconda.company.com/repository/conda , so when I use 此环境中conda频道的默认基本网址是https://wwwdesign.anaconda.company.com/repository/conda ,因此我使用时

channels:
    - conda-forge

I get the following error: 我收到以下错误:

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

I can force conda to look in the default public anaconda channel by adding http://repo.anaconda.com/pkgs/main , but I can't find the equivalent url for conda-forge . 我可以通过添加http://repo.anaconda.com/pkgs/main强制conda查看默认的公共anaconda频道,但我找不到conda-forge的等效网址。 I tried https://anaconda.org/conda-forge/repo , but it doesn't work (similar error to above). 我尝试了https://anaconda.org/conda-forge/repo ,但它不起作用(与上面类似的错误)。

Short Answer conda-forge 's fully resolved url is https://conda.anaconda.org/conda-forge/ 简答题 conda-forge完全解析的网址是https://conda.anaconda.org/conda-forge/

How I found it Among other information, conda info spits out the full channel URLs that you've configured in conda. 我如何找到它在其他信息中, conda info吐出您在conda中配置的完整通道URL。 I added conda-forge to my workstation's conda with conda config --add channels conda-forge and ran conda info . 我使用conda config --add channels conda-forgeconda-forge添加到我的工作站的conda并运行conda info You'll get two urls for each channel, an <OS>-64 and noarch , but it seems like you can snip that off and use https://conda.anaconda.org/<channel-name>/ . 你会得到每个频道的两个网址,一个<OS>-64noarch ,但似乎你可以剪掉它并使用https://conda.anaconda.org/<channel-name>/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM