安装torch报错,cuda版本11.1

一、安装torch报错,cuda版本11.1

报错内容:

Could not find a version that satisfies the requirement torch==1.9.0+cu111

二、报错原因

python版本过高,无法向下兼容。

三、解决办法

输入代码,降低python版本:

conda install python=3.9.13

四、重新安装torch

pip install torch==1.9.0+cu111 torchvision==0.10.0+cu111 torchaudio==0.9.0 -f https://download.pytorch.org/whl/torch_stable.html

五、安装成功

猜你喜欢

转载自blog.csdn.net/m0_52625549/article/details/131815763
今日推荐