Linux conda安装pytorch速度慢

Linux conda安装pytorch速度慢

1. 添加源

conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/
conda config --add channels https://mirrors.sjtug.sjtu.edu.cn/anaconda/pkgs/main/
conda config --add channels https://mirrors.sjtug.sjtu.edu.cn/anaconda/pkgs/free/

2. 安装

进官网选择合适版本:https://pytorch.org/get-started/locally/

复制命令,将最后的-c pytorch去掉,如:

conda install pytorch torchvision cudatoolkit=10.0 
原文地址:https://www.cnblogs.com/lzping/p/13536123.html