在win10基础上已经安装好了Anaconda,继续安装Pytorch。因为采用原本的下载方法实在太慢,还容易出现问题,现采取Pytorch清华镜像下载方法,亲测有效快速!!!
1.已经安装好Anaconda
2.搜索cmd>>>打开Anaconda Prompt
3.添加清华镜像
>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
4.添加Pytorch镜像
>conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/win-64/
注意:这里有个坑,必须是进到win-64文件夹才可以!!!
5.安装Pytorch(官网:https://pytorch.org/)
>conda install pytorch torchvision cudatoolkit=10.0
注意:博主的cuda是10.0版本,根据不同的版本搜索自己的下载语句,记住去掉