无法使用pip安装Torch

问题描述 投票:0回答:1

我使用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

问题是什么以及如何解决?

python pytorch pip torch
1个回答
0
投票

文档中指出:

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

但是在 PyPi 上,torch 的稳定版本(即版本 2.4.1)支持 Python 3.8 - 3.12。 Python 3.12 Windows 有轮子,如here所示。

但是,尚不支持Python 3.13。要使用此包,请降级到受支持的版本(可能是 Python 3.12)。

© www.soinside.com 2019 - 2024. All rights reserved.