[英]ERROR: Could not find a version that satisfies the requirement torch (from versions: none) ERROR: No matching distribution found for torch
I tried to download torch by using pip install torch
我尝试使用
pip install torch
I faced this problem:我遇到了这个问题:
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
Try installing numpy first.尝试先安装 numpy。
pip install numpy
If this doesn't help, then try running your script in python environment running v3.8如果这没有帮助,请尝试在运行 v3.8 的 python 环境中运行您的脚本
You may use Anaconda individual edition for that.您可以为此使用 Anaconda 个人版。
It isn't officially supported by 3.10 yet. 3.10 还没有正式支持它。 Use the nightly builds:
使用每晚构建:
pip3 install --pre torch -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html
This occurs if you are on a version of python greater than 3.7 on Windows.如果您使用的 python 版本大于 Windows 上的 3.7,则会发生这种情况。 PyTorch specifies on their website that versions later than 3.7 are not supported.
PyTorch在其网站上指定不支持高于 3.7 的版本。 I had this error show up for me on my Windows machine when using 3.8.
使用 3.8 时,我的 Windows 机器上出现了这个错误。 After installing 3.7 and setting that as the default python the issue resolved.
安装 3.7 并将其设置为默认 python 后,问题已解决。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.