Cannot `pip install torch` (MacOS / Python 3.11)

fwiw I’m not trying to be a dick here.

ML first-timers will probably realize thru bouncing YouTube/Google/Discord that most of the action is happening around pytorch. And a lot of them will bump into the above fail and end up searching this forum.

So it would make sense to have a summary somewhere google-visible. That GitHub issue is a massive wall of text.

In short, you can use your SYSTEM python to create your .venv:

> /usr/bin/python3 -m venv .venv

My mac shows:

> /usr/bin/python3 --version
Python 3.9.6

… and I’m running latest macOS (13.1 Ventura).

If you . .venv/bin/activate you should be able to pip install torch with no problems.