简体   繁体   中英

Can't install torch (windows)

I am trying to install torch using pypy. when I run pypy -m pip install torch , I get this error:

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

Why is this happening, and how can I successfully install torch?

I want to install torch (above 1.6.0), I can't

try:

pip3 install torch

pip install pytorch

Do you have python version 3.11?. If yes, try using a lower version. It doesn't work with Python 3.11. When I had anaconda installed with Python 3.9, it worked fine, but when I updated python version to 3.11, I was unable to install it and was getting the same error.

Pytorch is not compatible with PyPy. Support can be tracked on this pytorch issue . If it would install and run, what benefit would you expect? Have you profiled a pytorch project to see how much time is spent in pure-python code? The PyPy JIT cannot look inside C/C++/CUDA code, and the cpyext interface code to interact with the Python C-API is about 4x slower than CPython, so until HPY is more heavily used I would not expect any performance gain when using PyPy.

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.

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