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