pythonwindowspippytorchpypy

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


Solution

  • 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.