macOS
pip install torch torchvision torchaudio
macOS (Apple Silicon)
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu
PyTorch does not yet support Python 3.13 officially. Most deep learning libraries (including Torch, TensorFlow, and Ultralytics) currently support Python 3.8–3.11.
Tester on Main