当前位置:   article > 正文

【conda】镜像源_torch包清华源镜像地址

torch包清华源镜像地址

1. 查看源

conda config --show-sources

2. 删除/添加镜像源(以清华源为例)

conda config --remove channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/ conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/​​​​​​​


pip3 install torch torchvision -i https://pypi.mirrors.ustc.edu.cn/simple                                   pytorch国内镜像网址: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/linux-64/

后面的是镜像,当然也可以采用其他源,网上很多;

国内镜像源列表

豆瓣(douban) http://pypi.douban.com/simple/

清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/

阿里云 http://mirrors.aliyun.com/pypi/simple/

中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/

中国科学技术大学 http://pypi.mirrors.ustc.edu.cn/simple/
 

3. 恢复默认源

conda config --remove-key channels

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/花生_TL007/article/detail/317107
推荐阅读
相关标签
  

闽ICP备14008679号