gpt4 book ai didi

python - Anaconda - 更新时出现 HTTPError

转载 作者:太空宇宙 更新时间:2023-11-04 05:21:56 27 4
gpt4 key购买 nike

当我尝试运行 conda update numpy 时出现以下错误(也在运行 conda update conda 时)

Fetching package metadata ............CondaHTTPError: HTTP Error: Could not find URL: https://conda.anaconda.org/condaforge/linux-64/

this thread 中的人有类似的问题,但我没有在我的 .condarc 中发现任何与他们类似的错误。

这是我的 .condarc 的样子

channels:
- condaforge
- bioconda
- r
- defaults

以及conda info的输出

Current conda install:

platform : linux-64
conda version : 4.2.9
conda is private : False
conda-env version : 4.2.9
conda-build version : not installed
python version : 3.5.2.final.0
requests version : 2.9.1
root environment : /home/axolotl/miniconda3 (writable)
default environment : /home/axolotl/miniconda3
envs directories : /home/axolotl/miniconda3/envs
package cache : /home/axolotl/miniconda3/pkgs
channel URLs : https://conda.anaconda.org/condaforge/linux-64/
https://conda.anaconda.org/condaforge/noarch/
https://conda.anaconda.org/bioconda/linux-64/
https://conda.anaconda.org/bioconda/noarch/
https://conda.anaconda.org/r/linux-64/
https://conda.anaconda.org/r/noarch/
https://repo.continuum.io/pkgs/free/linux-64/
https://repo.continuum.io/pkgs/free/noarch/
https://repo.continuum.io/pkgs/pro/linux-64/
https://repo.continuum.io/pkgs/pro/noarch/
config file : /home/axolotl/.condarc
offline mode : False

最佳答案

正确的 channel 名称是 conda-forge。你应该

conda config --remove channels condaforge
conda config --add channels conda-forge

关于python - Anaconda - 更新时出现 HTTPError,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40011948/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com