当我尝试安装软件包时,我看到来自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
答案 0 :(得分:3)
Conda在阅读远程软件包存储库时遇到问题。以下是一些尝试:
签入~/.condarc
或.../miniconda/.condarc
。或使用以下命令查看配置文件的位置:
conda config --show-sources
确保所有通道名称拼写正确。
anaconda.org
anaconda logout
anaconda login
(如果您没有安装anaconda
命令,则此问题不适用于您。)
在Mac上:
sudo killall -HUP mDNSResponder
在Linux上,您的DNS条目可能根本没有缓存,但请参见此处: