conda config --show-sources
conda index /opt/channel
conda config --prepend channels file:///opt/channel
如:
file:///home/spur/ppl170/pplce-1.7.0-mirror
file:///data/localchannel/localChannel/
设置FTP服务器作为源
conda config --prepend channels ftp://172.100.100.100/AI/pplce-1.7.0-mirror/
添加其他源
conda config --prepend channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/ conda config --prepend channels http://mirrors.ustc.edu.cn/anaconda/pkgs/free/
#查看镜像源是否设置成功
conda config --set show_channel_urls yes
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
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/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/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/