Linux下载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/conda-forge/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --set show_channel_urls yes
Linux中不使用镜像下载pytorch的命令如下
conda install pytorch torchvision torchaudio cudatoolkit=10.2 -c pytorch
使用镜像下载速度会更快
将-c pytorch 更换为下面的方式:
conda install pytorch torchvision torchaudio cudatoolkit=10.2 -c https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/linux-64/
还有一种保证好用的方法:
https://www.jb51.net/article/206547.htm
更多推荐



所有评论(0)