1.添加通道
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
conda config --add channels conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
conda config --add channels https://mirrors.bfsu.edu.cn/anaconda/cloud/pytorch/win-64/
2.conda安装
conda install pytorch torchvision torchaudio pytorch-cuda=12.1 -c pytorch -c nvidia
3.安装成功
标签:--,add,cuda12.1,channels,pytorch,conda,镜像,config From: https://blog.csdn.net/weixin_62234491/article/details/137194307