pytroch的安装
寻找对应pytroch版本
在cmd中输入命令 nvidia-smi
https://pytorch.org/get-started/locally/
安装pytroch时镜像总显示不对
添加新的镜像
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/
conda config --set show_channel_urls yes
测试
在这个环境下,在命令行输入:
python
然后输入:
import torch
如果没有报错,则安装成功。