It looks like you're on python 3.11 which has some issues with Pytorch. Downgrade to python 3.10 and try running it again.
Why on earth is Python like this? It's so frustrating coming from other languages where the dependency management plan isn't just so YOLO and free-for-all.
I agree though, Python packaging is consistently hell in an otherwise pleasant environment… saying that as a Python user since 1.5.