清华大学镜像安装pytorch1.4


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,这个参数指定了下载通道为官网。


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM