• conda install 下载慢 报错解决


    下载失败

    conda install xxx 出现如下报错:

    CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://repo.anaconda.com/pkgs/main/win-64/xxxxx.tar.bz2>
    Elapsed: -
    
    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.
    

    解决方法一

    出现错误即是下载失败,配置清华大学镜像源:

    conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/
    conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/
    conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
    conda config --set show_channel_urls yes
    

    解决方法二

    如果清华大学镜像源里面没有这个库,那么还是会从原来的镜像https://repo.anaconda.com/pkgs/main/里面下载。

    这里解决方法是使用迅雷等其他下载器将.tar.bz2下载到本地,执行本地安装:

    conda install --use-local xxxx.tar.bz2
    

    如果出现错误:

    CondaVerificationError
    ....
    specified in the package manifest cannot be found.
    

    需要清理之前的缓存:

    conda clean --packages --tarballs
    

    然后再重新执行本地安装

  • 相关阅读:
    php生成二维码
    赞的算法
    Linux系统信息查看命令大全
    详细介绍Linux telnet命令的使用
    Linux VSFTP服务器
    禁止浏览器缓存页面的方法
    php开启短标签
    BZOJ2648 SJY摆棋子(KD-Tree)
    KD-Tree学习笔记
    BZOJ5461 PKUWC2018Minimax(概率期望+线段树合并+动态规划)
  • 原文地址:https://www.cnblogs.com/TTyb/p/12751976.html
Copyright © 2020-2023  润新知