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/kevin-lee123/p/12323008.html

Logo

魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。

更多推荐