一、安装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