Can't install torch on macOS

On macOS (Ventura 13.2.1, MBA M2)

pip install torch torchvision 

gives

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

Just starting out with Torch here but hit an immediate dead end just following the first few lines of the documentation with a fully uptodate environment.


$ which -a python
.../venvs/models/bin/python
/opt/homebrew/opt/python@3.11/libexec/bin/python
$ python -VV
Python 3.11.2 (main, Feb 16 2023, 02:55:59) [Clang 14.0.0 (clang-1400.0.29.202)]

I’m unsure if Python 3.11 is already supported on Mac, so could you downgrade Python to e.g. 3.10 and rerun the install command?

PyTorch 2.0 works fine!