赞
踩
错误代码:
ERROR: Could not find a version that satisfies the requirement torch==1.9.1+cu102 (from versions: 1.7.1, 1.8.0, 1.8.1, 1.9.0, 1.9.1, 1.10.0, 1.10.1, 1.10.2, 1.11.0, 1.12.0, 1.12.1, 1.13.0, 1.13.1, 2.0.0, 2.0.1, 2.1.0, 2.1.1, 2.1.2)
ERROR: No matching distribution found for torch==1.9.1+cu102
如果和我一样往下看:
解决问题点:
如果同时确定torch版本以及适合的CUDA版本,应该使用下面的指令,使用这条指令,可以直接在官方对应的网站检索相应版本下载
pip3 install torch==1.9.1+cu102 torchvision==0.10.1+cu102 torchaudio===0.9.1 -f https://download.pytorch.org/whl/torch_stable.html
我的是在yolov5环境下安装的 所以输入:
python ----- 进入python环境
print(torch.__version__) ----- 查看版本
安装成功
我是机器视觉小白,会把学习经历分享在csdn中,如果您也是视觉爱好者可以“关注”我,我们一块学习哦~
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。