报错:CondaHTTPError: HTTP 404 NOT FOUND for url

本文介绍如何修复Conda在新建环境时遇到的HTTP 404错误,重点在于通过删除默认频道并添加conda-forge、bioconda等替代频道来解决问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

参考:https://blog.csdn.net/weixin_41010198/article/details/88740150
conda新建环境的时候,出现问题:

Solving environment: failed
CondaHTTPError: HTTP 404 NOT FOUND for url https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/noarch/repodata.json 26

解决方案:

conda config --remove-key channels
conda config --append channels conda-forge --append channels bioconda --append channels defaults
WARNING: The remote server could not find the noarch directory for the requested channel with url: https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/' `noarch/repodata.json.bz2` files, even if `noarch/repodata.json` is empty. channel administrator create `noarch/repodata.json` and associated If the requested url is in fact a valid conda channel, please request that the It is possible you have given conda an invalid channel. Please double-check your conda configuration using `conda config --show`. $ mkdir noarch $ echo '{}' > noarch/repodata.json $ bzip2 -k noarch/repodata.json Elapsed: 00:00.085626 An HTTP error occurred when trying to retrieve this URL. CondaError: CondaHTTPError: HTTP 404 NOT FOUND for url /mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/win-64/ca-certificates-2025.2.25-haa95532_0.tar.bz2> Elapsed: 00:00.074368 CondaError: CondaHTTPError: HTTP 404 NOT FOUND for url /mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/win-64/ca-certificates-2025.2.25-haa95532_0.tar.bz2> HTTP errors are often intermittent, and a simple retry will get you on your way. An HTTP error occurred when trying to retrieve this URL. HTTP errors are often intermittent, and a simple retry will get you on your way. CondaError: CondaHTTPError: HTTP 404 NOT FOUND for url /mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/win-64/ca-certificates-2025.2.25-haa95532_0.tar.bz2> HTTP errors are often intermittent, and a simple retry will get you on your way. Elapsed: 00:00.084162 An HTTP error occurred when trying to retrieve this URL
最新发布
07-15
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

后厂村路蔡徐坤

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值