当前位置: 首页 > news >正文

Anaconda 中遇到CondaHTTPError: HTTP 404 NOT FOUND for url的问题及解决办法

最近在跑一个开源项目遇到了以下问题,查了很多资料都大(抄)同(来)小(抄)异(去)的,解决不了根本问题,费了很大的劲终于得以解决,记录如下:

1、问题及过程:

(myenv) D:\Workspace\python\XXXXX>conda install python=3.6.13 
Solving environment: done.....Proceed ([y]/n)? yDownloading and Extracting Packages
certifi-2021.5.30    | 142 KB    |                |   0%  
......CondaHTTPError: HTTP 404 NOT FOUND for url <https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/win-64/certifi-2021.5.30-py36haa95532_0.tar.bz2>
Elapsed: 00:00.050146An HTTP error occurred when trying to retrieve this URL.
HTTP errors are often intermittent, and a simple retry will get you on your way.CondaHTTPError: HTTP 404 NOT FOUND for url <https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/win-64/python-3.6.13-h3758d61_0.tar.bz2>
Elapsed: 00:00.189201.......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.

2、解决办法:

在用户目录下(如win10中C:\Users\xxx\),修改.condarc文件,内容替换如下:

channels:- defaults
show_channel_urls: true
channel_alias: https://repo.anaconda.com
default_channels:- https://repo.anaconda.com/pkgs/main- https://repo.anaconda.com/pkgs/free- https://repo.anaconda.com/pkgs/r- https://repo.anaconda.com/pkgs/pro- https://repo.anaconda.com/pkgs/msys2
custom_channels:conda-forge: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloudmsys2: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloudbioconda: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloudmenpo: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloudpytorch: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloudsimpleitk: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud

关键点在于:default_channels用的官方的源,custom_channels用的清华的源。

问题最终得以解决。

http://www.lryc.cn/news/436313.html

相关文章:

  • 数据库系统 第51节 数据库事务管理
  • 分解+优化+组合+对比!核心无忧!VMD-SSA-Transformer-LSTM多变量时间序列光伏功率预测
  • 二十三种设计模式之建造者模式(类比汽车制造厂好理解一些)
  • macos 系统文件操作时提示 Read-only file system 解决方法
  • 银行业务架构指导应用架构规划及设计方法
  • 最全面IO流介绍
  • fastadmin 文件上传腾讯云
  • 《机器学习》—— PCA降维
  • 植物三萜皂苷生物合成途径及调控机制研究进展-文献精读48
  • server 2016搭建FTP服务
  • 物理学基础精解【4】
  • 【区块链 + 人才服务】Blockchain Workshop- 区块链编程实践平台 | FISCO BCOS应用案例
  • Java面试篇基础部分-Java中常用的I/O模型
  • 如何使用python运行Flask开发框架并实现无公网IP远程访问
  • 第三届828 B2B企业节开幕,大腾智能携手华为云共谱数字化新篇章
  • Linux网络编程IO管理
  • SpringCloud集成ELK
  • 【卷起来】VUE3.0教程-06-组件详解
  • JS Web
  • 【Linux】传输层协议——UDP
  • 算法学习攻略总结 : 入门至进阶,通关之路指南
  • 《卷积神经网络 CNN 原理探秘》
  • C#获取计算机信息
  • 派遣函数 - 通过设备链接打开设备
  • Vue 2 中的 `$set` 方法详解
  • 掌握Hive函数[2]:从基础到高级应用
  • 水壶问题记录
  • spring综合性利用工具-SpringBootVul-GUI(五)
  • 2024年9月12日(k8s环境及测试 常用命令)
  • 卫生间漏水原因很多,切莫病急乱投医