gpt4 book ai didi

python - 我不知道如何安装Pytorch

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

我不知道如何在windows上用pip安装Pytorch。我执行的任何命令都不起作用。我试过:

pip install torch

pip3 install torch

pip install pytorch

pip3 install pytorch

pip install torch torchvisual torchaudio

pip3 install torch torchvisual torchaudio

pip3 install torch==1.10.1+cu102 torchvision==0.11.2+cu102torchaudio===0.10.1+cu102 -fhttps://download.pytorch.org/whl/cu102/torch_stable.html

我使用该网站尝试安装它,但它们都出现此错误:

ERROR: Could not find a version that satisfies the requirement torch (from versions: none)
ERROR: No matching distribution found for torch

最佳答案

您可能在 Python 3.10 上尝试过此操作,但 PyPI 3.10 上还没有针对 PyTorch 的构建。只需暂时安装 Python 3.9,使用 pip install torch 就可以了。

(请注意,这是在 2021-12-25 上发布的;你好来自 future 的人们,这似乎不会持续太久,所以你的问题可能是不同的)

关于python - 我不知道如何安装Pytorch,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/70476904/

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