pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu124
Since CUDA 12.6 is newer, you may need to use the PyTorch "Nightly" (preview) builds to get native support, or rely on the compatibility path. pytorch for cuda 12.6
I'm not sure what your question is, but note that PyTorch binaries ship with their own CUDA runtime dependencies. Your locally ins... PyTorch Forums PyTorch PyTorch Build. Stable (2.11.0) Preview (Nightly) Your OS. Linux. Mac. Windows. Package. Pip. LibTorch. Source. Language. Python. C... PyTorch PyTorch PyTorch Build. Stable (2.11.0) Preview (Nightly) Your OS. Linux. Mac. Windows. Package. Pip. LibTorch. Source. Language. Python. C... PyTorch Previous PyTorch Versions # ROCM 6.4 (Linux only) pip install torch==2.8.0 torchvision==0.23.0 torchaudio==2.8.0 --index-url https://download.pytorch.org/wh... PyTorch [RFC] Cuda support matrix for Release 2.10 ... - GitHub Oct 9, 2025 — PyTorch Forums PyTorch PyTorch Build
Warning: Nightly builds are on the bleeding edge and may contain bugs. Language. Python. C...
nvcc --version nvidia-smi # Expected: CUDA Version 12.6