本文共 966 字,大约阅读时间需要 3 分钟。
在服务器中使用conda下载Pytorch的时候,速度非常慢,所以想添加清华镜像加快下载速度,但是网上一般的修改配置文件的方法,需要获取sudo权限,在服务器中又没有该权限,只能一项项添加镜像的channel了
添加前,查看conda信息
conda info
添加方式
#channel_aliasconda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda#default_channelsconda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/mainconda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/freeconda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/rconda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/proconda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/msys2#custom_channelsconda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud#Conda Forgeconda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/#pytorchconda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/
添加完成之后再次查看信息
添加完成!
转载地址:http://lrrpi.baihongyu.com/