• CondaHTTPError: HTTP 000 CONNECTION FAILED for url报错解决记录


    1、使用conda创建环境遇到如下问题:

    2、备份原来的配置文件

    mv .condarc .condarc.backup

    3、创建新的配置文件 

    vim .condarc
    ##输入:
    channels:
      - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
      - https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/
      - https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/
    show_channel_urls: true
    ##然后保存

    4、测试

    [root@linuxprobe ~]# conda search trinity  ## 没有之前的报错
    Loading channels: done
    
    PackagesNotFoundError: The following packages are not available from current channels:
    
      - trinity
    
    Current channels:
    
      - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/linux-64
      - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/noarch
      - https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/linux-64
      - https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/noarch
      - https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/linux-64
      - https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/noarch

    参考:https://blog.csdn.net/cxm4399/article/details/100530896

  • 相关阅读:
    题库重整
    计算几何练习题――直线交点
    An Easy Task
    简单排序
    IBM Minus One
    Binary Numbers
    去掉VS2010代码中文注释的红色下划线
    【转】Windows socket基础
    【STL】vector的insert方法详解
    window7下 cocos2dx android交叉编译环境部署小结
  • 原文地址:https://www.cnblogs.com/liujiaxin2018/p/13846380.html
Copyright © 2020-2023  润新知