gpt4 book ai didi

python-3.x - 有人将如何在 python 3.9 上使用 pip 安装 pytorch?

转载 作者:行者123 更新时间:2023-12-05 01:09:41 25 4
gpt4 key购买 nike

当我尝试网站使用的命令时 pip install torch==1.7.0+cpu torchvision==0.8.1+cpu torchaudio===0.7.0 -f https://download.pytorch.org/whl/torch_stable.html

它返回了错误代码

ERROR: Could not find a version that satisfies the requirement torch==1.7.0+cpu (from versions: 0.1.2, 
0.1.2.post1, 0.1.2.post2)
ERROR: No matching distribution found for torch==1.7.0+cpu

即使我更改代码以满足要求,它也会出现更多错误,例如ModuleNotFoundError:没有名为“tools.setup_helpers”的模块

最佳答案

https://download.pytorch.org/whl/torch_stable.html 中搜索“1.7.0”页面,您可以看到仅适用于 Python 3.6、3.7 和 3.8 的轮子可用。

所以 Python 3.9 没有官方轮子。

更新:PyTorch 目前不适用于 Python 3.9,有一些已知问题正在解决:https://github.com/pytorch/pytorch/issues/47776

关于python-3.x - 有人将如何在 python 3.9 上使用 pip 安装 pytorch?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64885565/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com