pytorch无法下载或下载缓慢问题
生活随笔
收集整理的這篇文章主要介紹了
pytorch无法下载或下载缓慢问题
小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
第一步
切換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 --set show_channel_urls yes#添加pytorch源 conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/ # for legacy win-64 conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/peterjc123/第二步
復(fù)制PyTorch官網(wǎng)命令,并將 -c pytorch刪除。
-c pytorch是強(qiáng)制從PyTorch官網(wǎng)下載包,配置的清華源就會(huì)失效。
?
總結(jié)
以上是生活随笔為你收集整理的pytorch无法下载或下载缓慢问题的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 相交链表—leetcode160
- 下一篇: 最小栈—leetcode155