pytorch使用清华源安装仍失败解决方案
生活随笔
收集整理的這篇文章主要介紹了
pytorch使用清华源安装仍失败解决方案
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
給conda配置清華源鏡像,及pytoch清華源鏡像:
# 添加清華源 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/conda-forge/ conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/ conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/ conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/bioconda/ conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/menpo/使用mac下載命令:conda install pytorch==1.8.0 torchvision==0.9.0 torchaudio==0.8.0 -c pytorch
安裝過程中會(huì)因?yàn)榫W(wǎng)絡(luò)鏈接中斷而報(bào)錯(cuò)顯示安裝失敗
可以看出來,這三個(gè)文件下載不下來:
使用瀏覽器打開,網(wǎng)頁進(jìn)行下載,下載到本地址后,使用conda install命令進(jìn)行安裝
然后使用命令:conda install pytorch==1.8.0 torchvision==0.9.0 torchaudio==0.8.0 -c pytorch安裝即可成功
總結(jié)
以上是生活随笔為你收集整理的pytorch使用清华源安装仍失败解决方案的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 消息称华为将于 11 月 28 日推出新
- 下一篇: 稀罕的拼音(成家立业的拼音)