首页 > 编程知识 正文

pytorch清华镜像源不了,清华源pytorch

时间:2023-05-04 20:10:34 阅读:268645 作者:3389

1.添加清华通道

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/pytorch/

2.去pytorch官网下载指定版本的pytorch

conda install pytorch torchvision cudatoolkit=10.1 -c pytorch

这是我的。

3.为conda添加权限

chmod 775 ./.conda

4.执行第二部的命令,但是要去掉 -c pytorch,这个参数指定了下载通道为官网。

原文:https://www.cnblogs.com/无情的台灯-lee123/p/12323008.html

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。