CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://conda.anaconda.org/pytorch

pytorch和torchvision下载失败,主要是anaconda延迟过高导致

增加国内镜像源来安装

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



离线方式:
通过访问该连接直接访问下载文件
https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/
 
使用conda install --offline 环境变量 文件路径

猜你喜欢

转载自www.cnblogs.com/duanzq/p/12453084.html