ERROR: Could not find a version that satisfies the requirement torch (from versions: none) ERROR: No matching distribution found for torch
参考了这篇博客
pytorch安装GPU版本 (Cuda12.1)教程_pytorchgpu版本_冬眠的关刀的博客-CSDN博客
cuda版本什么的都对的上,安装的时候就一直报找不到,后面发现是python版本太低了(3.7)后面换成3.9的就安装好了。
安装的是Cuda12.1对应的pytorch
安好python3.9后以后在cmd输入
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118
就好了(安装代码用的参考博客的pip)
和大家分享一下。