简体   繁体   中英

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

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.

pip install numpy

If this doesn't help, then try running your script in python environment running v3.8

You may use Anaconda individual edition for that.

It isn't officially supported by 3.10 yet. 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. PyTorch specifies on their website that versions later than 3.7 are not supported. I had this error show up for me on my Windows machine when using 3.8. After installing 3.7 and setting that as the default python the issue resolved.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

Related Question ERROR: Could not find a version that satisfies the requirement mathplotlib (from versions: none) ERROR: No matching distribution found for mathplotlib ERROR: Could not find a version that satisfies the requirement os (from versions: none) ERROR: No matching distribution found for os ERROR: Could not find a version that satisfies the requirement tensorflow (from versions: none) ERROR: No matching distribution found for tensorflow) ERROR: Could not find a version that satisfies the requirement Django==1.10.5 from versions: none ERROR: No matching distribution found Django==1.10.5 ERROR: Could not find a version that satisfies the requirement cv2 (from versions: none) ERROR: No matching distribution found for cv2 ERROR: Could not find a version that satisfies the requirement chatbot_demo_rest (from versions: none) ERROR: No matching distribution found for ERROR : Could not find a version that satisfies the requirement pandas (from versions: ) No matching distribution found for pandas how to fix " Could not find a version that satisfies the requirement install (from versions: ) No matching distribution found for install " error could not find a version that satisfies the requirement dblib (from versions: none) and No matching distribution found for dblib ERROR: No matching distribution found and ERROR: Could not find a version that satisfies the requirement
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM