Bootstrap

UnsatisfiableError: The following specifications were foundto be incompatible with the existing pyt

UnsatisfiableError: The following specifications were found
to be incompatible with the existing python installation in your environment:

Specifications:

  - torchaudio -> python[version='2.6.*|2.7.*|3.5.*|3.6.*|>=2.7,<2.8.0a0|>=3.5,<3.6.0a0|3.4.*|3.3.*']

Your python: python=3.9

If python is on the left-most side of the chain, that's the version you've asked for.
When python appears to the right, that indicates that the thing on the left is somehow
not available for the python version you are constrained to. Note that conda will not
change your python version to a different minor version unless you explicitly specify
that.

当我想创建pytorch python=3.8或=3.9时都会报错,无法下载cuda环境

之前查过说是因为python版本过高的原因,但我感觉我弄的才3.8跟3.9的应该不至于吧

后面搜了很多资料,自己先去cuda官网上下了cuda11.7.1的版本,然后又去cudnn官网下了对应的

后面再在anaconda prompt窗口中输入

>conda install pytorch==2.0.1 torchvision==0.15.2 torchaudio==2.0.2 pytorch-cuda=11.7 -c pytorch -c nvidia

就可以下载了。这里等的时间会有点久,看到more hidden等它自己慢慢加载完就可以了

按照上面命令查看是否下载成功

先进入到python环境,然后输入import torch

print·····

如果是true说明成功了

然后再用后面两个print句子检测cuda和cudnn版本看看是否成功

;