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

pytorch and torchvision download failed, mainly caused by excessive delays anaconda

Increase domestic mirror source to install

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

Guess you like

Origin www.cnblogs.com/duanzq/p/12453084.html