在安装pytorch的时候遇到了很多问题
大部分的 步骤可以参照这里:
https://blog.csdn.net/weixin_46668520/article/details/134413927
CUDA安装时建议11.6,因为我其他的新版本安装都出错了
pytorch安装时如果遇到
Could not solve for environment specs
The following packages are incompatible
├─ pin-1 is installable and it requires
│ └─ python 3.11.* , which can be installed;
└─ torchvision 0.14.1 is not installable because there are no viable options
├─ torchvision 0.14.1 would require
│ └─ python >=3.10,<3.11.0a0 , which conflicts with any installable versions previously reported;
├─ torchvision 0.14.1 would require
│ └─ python >=3.7,<3.8.0a0 , which conflicts with any installable versions previously reported;
├─ torchvision 0.14.1 would require
│ └─ python >=3.8,<3.9.0a0 , which conflicts with any installable versions previously reported;
└─ torchvision 0.14.1 would require
└─ python >=3.9,<3.10.0a0 , which conflicts with any installable versions previously reported.
这个问题告诉你python版本不对
这时候新建一个虚拟环境
conda create -n myenv python=3.10
conda activate myenv
这个时候继续下载