我使用 Windows

我安装了 Python 3.13

我正在尝试pip install torch

但是,当我尝试这样做时,遇到了这个错误。

F:\Kit>pip install torch
ERROR: Could not find a version that satisfies the requirement torch (from versions: none)
ERROR: No matching distribution found for torch

问题是什么?如何解决?

1

  • 1
    pytorch称 Windows 上的 pytorch 仅支持 python 3.8-3.11 – 您需要降级到 python 3.11 才能安装


    – 


最佳答案
1

中指出

Windows 上的 PyTorch 仅支持 Python 3.8-3.11。

但是在上,torch 的稳定版本(即 2.4.1 版)支持 Python 3.8 – 3.12。如需查看 Python 3.12 Windows 版,请参阅

但是,目前还不支持 Python 3.13。要使用此包,请降级到受支持的版本,例如 Python 3.12。