繁体   English   中英

错误:找不到满足火炬要求的版本(来自版本:无)错误:找不到火炬的匹配分布

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

我尝试使用pip install torch

我遇到了这个问题:

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

尝试先安装 numpy。

pip install numpy

如果这没有帮助,请尝试在运行 v3.8 的 python 环境中运行您的脚本

您可以为此使用 Anaconda 个人版。

3.10 还没有正式支持它。 使用每晚构建:

pip3 install --pre torch -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html

如果您使用的 python 版本大于 Windows 上的 3.7,则会发生这种情况。 PyTorch在其网站上指定不支持高于 3.7 的版本。 使用 3.8 时,我的 Windows 机器上出现了这个错误。 安装 3.7 并将其设置为默认 python 后,问题已解决。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM