CondaHTTPError: HTTP 000 CONNECTION FAILED for url


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 环境变量 文件路径


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM