警告:远程服务器找不到所请求通道的noarch目录

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

当我尝试安装软件包时,我看到来自conda的奇怪错误。仅仅搜索包裹会产生如下奇怪的警告。这是怎么回事?

(base) $ conda search libdvid-cpp
Fetching package metadata ....
WARNING: The remote server could not find the noarch directory for the
requested channel with url: https://conda.anaconda.org/flyem-forge

It is possible you have given conda an invalid channel. Please double-check
your conda configuration using `conda config --show`.

If the requested url is in fact a valid conda channel, please request that the
channel administrator create `noarch/repodata.json` and associated
`noarch/repodata.json.bz2` files, even if `noarch/repodata.json` is empty.
$ mkdir noarch
$ echo '{}' > noarch/repodata.json
$ bzip2 -k noarch/repodata.json
..
WARNING: The remote server could not find the noarch directory for the
requested channel with url: https://conda.anaconda.org/conda-forge

It is possible you have given conda an invalid channel. Please double-check
your conda configuration using `conda config --show`.

If the requested url is in fact a valid conda channel, please request that the
channel administrator create `noarch/repodata.json` and associated
`noarch/repodata.json.bz2` files, even if `noarch/repodata.json` is empty.
$ mkdir noarch
$ echo '{}' > noarch/repodata.json
$ bzip2 -k noarch/repodata.json
.........

PackageNotFoundError: Packages missing in current channels:

 - [('libdvid-cpp',)]

We have searched for the packages in the following channels:

 - https://conda.anaconda.org/flyem-forge/osx-64
 - https://conda.anaconda.org/flyem-forge/noarch
 - https://conda.anaconda.org/conda-forge/osx-64
 - https://conda.anaconda.org/conda-forge/noarch
 - https://repo.continuum.io/pkgs/main/osx-64
 - https://repo.continuum.io/pkgs/main/noarch
 - https://repo.continuum.io/pkgs/free/osx-64
 - https://repo.continuum.io/pkgs/free/noarch
 - https://repo.continuum.io/pkgs/r/osx-64
 - https://repo.continuum.io/pkgs/r/noarch
 - https://repo.continuum.io/pkgs/pro/osx-64
 - https://repo.continuum.io/pkgs/pro/noarch
conda
1个回答
4
投票

Conda无法读取远程软件包存储库。以下是一些尝试:

仔细检查您的频道列表

入住~/.condarc.../miniconda/.condarc。或使用以下命令查看配置文件的位置:

conda config --show-sources

确保所有通道名称拼写正确。

尝试刷新anaconda.org的令牌

anaconda logout
anaconda login

(如果您没有安装anaconda命令,则此问题不适用于您。)

尝试刷新DNS缓存:

在Mac上:

sudo killall -HUP mDNSResponder

在Linux上,您的DNS条目可能根本不会被缓存,但请参阅此处:

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