Previous PyTorch Versions (2024)

Installing previous versions of PyTorch

We’d prefer you install the latest version,but old binaries and installation instructions are provided below foryour convenience.

Commands for Versions >= 1.0.0

v2.3.0

Conda

OSX
# condaconda install pytorch==2.3.0 torchvision==0.18.0 torchaudio==2.3.0 -c pytorch
Linux and Windows
# CUDA 11.8conda install pytorch==2.3.0 torchvision==0.18.0 torchaudio==2.3.0 pytorch-cuda=11.8 -c pytorch -c nvidia# CUDA 12.1conda install pytorch==2.3.0 torchvision==0.18.0 torchaudio==2.3.0 pytorch-cuda=12.1 -c pytorch -c nvidia# CPU Onlyconda install pytorch==2.3.0 torchvision==0.18.0 torchaudio==2.3.0 cpuonly -c pytorch

Wheel

OSX
pip install torch==2.3.0 torchvision==0.18.0 torchaudio==2.3.0
Linux and Windows
# ROCM 6.0 (Linux only)pip install torch==2.3.0 torchvision==0.18.0 torchaudio==2.3.0 --index-url https://download.pytorch.org/whl/rocm6.0# CUDA 11.8pip install torch==2.3.0 torchvision==0.18.0 torchaudio==2.3.0 --index-url https://download.pytorch.org/whl/cu118# CUDA 12.1pip install torch==2.3.0 torchvision==0.18.0 torchaudio==2.3.0 --index-url https://download.pytorch.org/whl/cu121# CPU onlypip install torch==2.3.0 torchvision==0.18.0 torchaudio==2.3.0 --index-url https://download.pytorch.org/whl/cpu

v2.2.2

Conda

OSX
# condaconda install pytorch==2.2.2 torchvision==0.17.2 torchaudio==2.2.2 -c pytorch
Linux and Windows
# CUDA 11.8conda install pytorch==2.2.2 torchvision==0.17.2 torchaudio==2.2.2 pytorch-cuda=11.8 -c pytorch -c nvidia# CUDA 12.1conda install pytorch==2.2.2 torchvision==0.17.2 torchaudio==2.2.2 pytorch-cuda=12.1 -c pytorch -c nvidia# CPU Onlyconda install pytorch==2.2.2 torchvision==0.17.2 torchaudio==2.2.2 cpuonly -c pytorch

Wheel

OSX
pip install torch==2.2.2 torchvision==0.17.2 torchaudio==2.2.2
Linux and Windows
# ROCM 5.7 (Linux only)pip install torch==2.2.2 torchvision==0.17.2 torchaudio==2.2.2 --index-url https://download.pytorch.org/whl/rocm5.7# CUDA 11.8pip install torch==2.2.2 torchvision==0.17.2 torchaudio==2.2.2 --index-url https://download.pytorch.org/whl/cu118# CUDA 12.1pip install torch==2.2.2 torchvision==0.17.2 torchaudio==2.2.2 --index-url https://download.pytorch.org/whl/cu121# CPU onlypip install torch==2.2.2 torchvision==0.17.2 torchaudio==2.2.2 --index-url https://download.pytorch.org/whl/cpu

v2.2.1

Conda

OSX
# condaconda install pytorch==2.2.1 torchvision==0.17.1 torchaudio==2.2.1 -c pytorch
Linux and Windows
# CUDA 11.8conda install pytorch==2.2.1 torchvision==0.17.1 torchaudio==2.2.1 pytorch-cuda=11.8 -c pytorch -c nvidia# CUDA 12.1conda install pytorch==2.2.1 torchvision==0.17.1 torchaudio==2.2.1 pytorch-cuda=12.1 -c pytorch -c nvidia# CPU Onlyconda install pytorch==2.2.1 torchvision==0.17.1 torchaudio==2.2.1 cpuonly -c pytorch

Wheel

OSX
pip install torch==2.2.1 torchvision==0.17.1 torchaudio==2.2.1
Linux and Windows
# ROCM 5.7 (Linux only)pip install torch==2.2.1 torchvision==0.17.1 torchaudio==2.2.1 --index-url https://download.pytorch.org/whl/rocm5.7# CUDA 11.8pip install torch==2.2.1 torchvision==0.17.1 torchaudio==2.2.1 --index-url https://download.pytorch.org/whl/cu118# CUDA 12.1pip install torch==2.2.1 torchvision==0.17.1 torchaudio==2.2.1 --index-url https://download.pytorch.org/whl/cu121# CPU onlypip install torch==2.2.1 torchvision==0.17.1 torchaudio==2.2.1 --index-url https://download.pytorch.org/whl/cpu

v2.2.0

Conda

OSX
# condaconda install pytorch==2.2.0 torchvision==0.17.0 torchaudio==2.2.0 -c pytorch
Linux and Windows
# CUDA 11.8conda install pytorch==2.2.0 torchvision==0.17.0 torchaudio==2.2.0 pytorch-cuda=11.8 -c pytorch -c nvidia# CUDA 12.1conda install pytorch==2.2.0 torchvision==0.17.0 torchaudio==2.2.0 pytorch-cuda=12.1 -c pytorch -c nvidia# CPU Onlyconda install pytorch==2.2.0 torchvision==0.17.0 torchaudio==2.2.0 cpuonly -c pytorch

Wheel

OSX
pip install torch==2.2.0 torchvision==0.17.0 torchaudio==2.2.0
Linux and Windows
# ROCM 5.6 (Linux only)pip install torch==2.2.0 torchvision==0.17.0 torchaudio==2.2.0 --index-url https://download.pytorch.org/whl/rocm5.6# CUDA 11.8pip install torch==2.2.0 torchvision==0.17.0 torchaudio==2.2.0 --index-url https://download.pytorch.org/whl/cu118# CUDA 12.1pip install torch==2.2.0 torchvision==0.17.0 torchaudio==2.2.0 --index-url https://download.pytorch.org/whl/cu121# CPU onlypip install torch==2.2.0 torchvision==0.17.0 torchaudio==2.2.0 --index-url https://download.pytorch.org/whl/cpu

v2.1.2

Conda

OSX
# condaconda install pytorch==2.1.2 torchvision==0.16.2 torchaudio==2.1.2 -c pytorch
Linux and Windows
# CUDA 11.8conda install pytorch==2.1.2 torchvision==0.16.2 torchaudio==2.1.2 pytorch-cuda=11.8 -c pytorch -c nvidia# CUDA 12.1conda install pytorch==2.1.2 torchvision==0.16.2 torchaudio==2.1.2 pytorch-cuda=12.1 -c pytorch -c nvidia# CPU Onlyconda install pytorch==2.1.2 torchvision==0.16.2 torchaudio==2.1.2 cpuonly -c pytorch

Wheel

OSX
pip install torch==2.1.2 torchvision==0.16.2 torchaudio==2.1.2
Linux and Windows
# ROCM 5.6 (Linux only)pip install torch==2.1.2 torchvision==0.16.2 torchaudio==2.1.2 --index-url https://download.pytorch.org/whl/rocm5.6# CUDA 11.8pip install torch==2.1.2 torchvision==0.16.2 torchaudio==2.1.2 --index-url https://download.pytorch.org/whl/cu118# CUDA 12.1pip install torch==2.1.2 torchvision==0.16.2 torchaudio==2.1.2 --index-url https://download.pytorch.org/whl/cu121# CPU onlypip install torch==2.1.2 torchvision==0.16.2 torchaudio==2.1.2 --index-url https://download.pytorch.org/whl/cpu

v2.1.1

Conda

OSX
# condaconda install pytorch==2.1.1 torchvision==0.16.1 torchaudio==2.1.1 -c pytorch
Linux and Windows
# CUDA 11.8conda install pytorch==2.1.1 torchvision==0.16.1 torchaudio==2.1.1 pytorch-cuda=11.8 -c pytorch -c nvidia# CUDA 12.1conda install pytorch==2.1.1 torchvision==0.16.1 torchaudio==2.1.1 pytorch-cuda=12.1 -c pytorch -c nvidia# CPU Onlyconda install pytorch==2.1.1 torchvision==0.16.1 torchaudio==2.1.1 cpuonly -c pytorch

Wheel

OSX
pip install torch==2.1.1 torchvision==0.16.1 torchaudio==2.1.1
Linux and Windows
# ROCM 5.6 (Linux only)pip install torch==2.1.1 torchvision==0.16.1 torchaudio==2.1.1 --index-url https://download.pytorch.org/whl/rocm5.6# CUDA 11.8pip install torch==2.1.1 torchvision==0.16.1 torchaudio==2.1.1 --index-url https://download.pytorch.org/whl/cu118# CUDA 12.1pip install torch==2.1.1 torchvision==0.16.1 torchaudio==2.1.1 --index-url https://download.pytorch.org/whl/cu121# CPU onlypip install torch==2.1.1 torchvision==0.16.1 torchaudio==2.1.1 --index-url https://download.pytorch.org/whl/cpu

v2.1.0

Conda

OSX
# condaconda install pytorch==2.1.0 torchvision==0.16.0 torchaudio==2.1.0 -c pytorch
Linux and Windows
# CUDA 11.8conda install pytorch==2.1.0 torchvision==0.16.0 torchaudio==2.1.0 pytorch-cuda=11.8 -c pytorch -c nvidia# CUDA 12.1conda install pytorch==2.1.0 torchvision==0.16.0 torchaudio==2.1.0 pytorch-cuda=12.1 -c pytorch -c nvidia# CPU Onlyconda install pytorch==2.1.0 torchvision==0.16.0 torchaudio==2.1.0 cpuonly -c pytorch

Wheel

OSX
pip install torch==2.1.0 torchvision==0.16.0 torchaudio==2.1.0
Linux and Windows
# ROCM 5.6 (Linux only)pip install torch==2.1.0 torchvision==0.16.0 torchaudio==2.1.0 --index-url https://download.pytorch.org/whl/rocm5.6# CUDA 11.8pip install torch==2.1.0 torchvision==0.16.0 torchaudio==2.1.0 --index-url https://download.pytorch.org/whl/cu118# CUDA 12.1pip install torch==2.1.0 torchvision==0.16.0 torchaudio==2.1.0 --index-url https://download.pytorch.org/whl/cu121# CPU onlypip install torch==2.1.0 torchvision==0.16.0 torchaudio==2.1.0 --index-url https://download.pytorch.org/whl/cpu

v2.0.1

Conda

OSX
# condaconda install pytorch==2.0.1 torchvision==0.15.2 torchaudio==2.0.2 -c pytorch
Linux and Windows
# CUDA 11.7conda install pytorch==2.0.1 torchvision==0.15.2 torchaudio==2.0.2 pytorch-cuda=11.7 -c pytorch -c nvidia# CUDA 11.8conda install pytorch==2.0.1 torchvision==0.15.2 torchaudio==2.0.2 pytorch-cuda=11.8 -c pytorch -c nvidia# CPU Onlyconda install pytorch==2.0.1 torchvision==0.15.2 torchaudio==2.0.2 cpuonly -c pytorch

Wheel

OSX
pip install torch==2.0.1 torchvision==0.15.2 torchaudio==2.0.2
Linux and Windows
# ROCM 5.4.2 (Linux only)pip install torch==2.0.1 torchvision==0.15.2 torchaudio==2.0.2 --index-url https://download.pytorch.org/whl/rocm5.4.2# CUDA 11.7pip install torch==2.0.1 torchvision==0.15.2 torchaudio==2.0.2# CUDA 11.8pip install torch==2.0.1 torchvision==0.15.2 torchaudio==2.0.2 --index-url https://download.pytorch.org/whl/cu118# CPU onlypip install torch==2.0.1 torchvision==0.15.2 torchaudio==2.0.2 --index-url https://download.pytorch.org/whl/cpu

v2.0.0

Conda

OSX
Linux and Windows
# CUDA 11.7conda install pytorch==2.0.0 torchvision==0.15.0 torchaudio==2.0.0 pytorch-cuda=11.7 -c pytorch -c nvidia# CUDA 11.8conda install pytorch==2.0.0 torchvision==0.15.0 torchaudio==2.0.0 pytorch-cuda=11.8 -c pytorch -c nvidia# CPU Onlyconda install pytorch==2.0.0 torchvision==0.15.0 torchaudio==2.0.0 cpuonly -c pytorch

Wheel

OSX
pip install torch==2.0.0 torchvision==0.15.1 torchaudio==2.0.1
Linux and Windows
# ROCM 5.4.2 (Linux only)pip install torch==2.0.0 torchvision==0.15.1 torchaudio==2.0.1 --index-url https://download.pytorch.org/whl/rocm5.4.2# CUDA 11.7pip install torch==2.0.0 torchvision==0.15.1 torchaudio==2.0.1# CUDA 11.8pip install torch==2.0.0 torchvision==0.15.1 torchaudio==2.0.1 --index-url https://download.pytorch.org/whl/cu118# CPU onlypip install torch==2.0.0 torchvision==0.15.1 torchaudio==2.0.1 --index-url https://download.pytorch.org/whl/cpu

v1.13.1

Conda

OSX
# condaconda install pytorch==1.13.1 torchvision==0.14.1 torchaudio==0.13.1 -c pytorch
Linux and Windows
# CUDA 11.6conda install pytorch==1.13.1 torchvision==0.14.1 torchaudio==0.13.1 pytorch-cuda=11.6 -c pytorch -c nvidia# CUDA 11.7conda install pytorch==1.13.1 torchvision==0.14.1 torchaudio==0.13.1 pytorch-cuda=11.7 -c pytorch -c nvidia# CPU Onlyconda install pytorch==1.13.1 torchvision==0.14.1 torchaudio==0.13.1 cpuonly -c pytorch

Wheel

OSX
pip install torch==1.13.1 torchvision==0.14.1 torchaudio==0.13.1
Linux and Windows
# ROCM 5.2 (Linux only)pip install torch==1.13.1+rocm5.2 torchvision==0.14.1+rocm5.2 torchaudio==0.13.1 --extra-index-url https://download.pytorch.org/whl/rocm5.2# CUDA 11.6pip install torch==1.13.1+cu116 torchvision==0.14.1+cu116 torchaudio==0.13.1 --extra-index-url https://download.pytorch.org/whl/cu116# CUDA 11.7pip install torch==1.13.1+cu117 torchvision==0.14.1+cu117 torchaudio==0.13.1 --extra-index-url https://download.pytorch.org/whl/cu117# CPU onlypip install torch==1.13.1+cpu torchvision==0.14.1+cpu torchaudio==0.13.1 --extra-index-url https://download.pytorch.org/whl/cpu

v1.13.0

Conda

OSX
# condaconda install pytorch==1.13.0 torchvision==0.14.0 torchaudio==0.13.0 -c pytorch
Linux and Windows
# CUDA 11.6conda install pytorch==1.13.0 torchvision==0.14.0 torchaudio==0.13.0 pytorch-cuda=11.6 -c pytorch -c nvidia# CUDA 11.7conda install pytorch==1.13.0 torchvision==0.14.0 torchaudio==0.13.0 pytorch-cuda=11.7 -c pytorch -c nvidia# CPU Onlyconda install pytorch==1.13.0 torchvision==0.14.0 torchaudio==0.13.0 cpuonly -c pytorch

Wheel

OSX
pip install torch==1.13.0 torchvision==0.14.0 torchaudio==0.13.0
Linux and Windows
# ROCM 5.2 (Linux only)pip install torch==1.13.0+rocm5.2 torchvision==0.14.0+rocm5.2 torchaudio==0.13.0 --extra-index-url https://download.pytorch.org/whl/rocm5.2# CUDA 11.6pip install torch==1.13.0+cu116 torchvision==0.14.0+cu116 torchaudio==0.13.0 --extra-index-url https://download.pytorch.org/whl/cu116# CUDA 11.7pip install torch==1.13.0+cu117 torchvision==0.14.0+cu117 torchaudio==0.13.0 --extra-index-url https://download.pytorch.org/whl/cu117# CPU onlypip install torch==1.13.0+cpu torchvision==0.14.0+cpu torchaudio==0.13.0 --extra-index-url https://download.pytorch.org/whl/cpu

v1.12.1

Conda

OSX
# condaconda install pytorch==1.12.1 torchvision==0.13.1 torchaudio==0.12.1 -c pytorch
Linux and Windows
# CUDA 10.2conda install pytorch==1.12.1 torchvision==0.13.1 torchaudio==0.12.1 cudatoolkit=10.2 -c pytorch# CUDA 11.3conda install pytorch==1.12.1 torchvision==0.13.1 torchaudio==0.12.1 cudatoolkit=11.3 -c pytorch# CUDA 11.6conda install pytorch==1.12.1 torchvision==0.13.1 torchaudio==0.12.1 cudatoolkit=11.6 -c pytorch -c conda-forge# CPU Onlyconda install pytorch==1.12.1 torchvision==0.13.1 torchaudio==0.12.1 cpuonly -c pytorch

Wheel

OSX
pip install torch==1.12.1 torchvision==0.13.1 torchaudio==0.12.1
Linux and Windows
# ROCM 5.1.1 (Linux only)pip install torch==1.12.1+rocm5.1.1 torchvision==0.13.1+rocm5.1.1 torchaudio==0.12.1 --extra-index-url https://download.pytorch.org/whl/rocm5.1.1# CUDA 11.6pip install torch==1.12.1+cu116 torchvision==0.13.1+cu116 torchaudio==0.12.1 --extra-index-url https://download.pytorch.org/whl/cu116# CUDA 11.3pip install torch==1.12.1+cu113 torchvision==0.13.1+cu113 torchaudio==0.12.1 --extra-index-url https://download.pytorch.org/whl/cu113# CUDA 10.2pip install torch==1.12.1+cu102 torchvision==0.13.1+cu102 torchaudio==0.12.1 --extra-index-url https://download.pytorch.org/whl/cu102# CPU onlypip install torch==1.12.1+cpu torchvision==0.13.1+cpu torchaudio==0.12.1 --extra-index-url https://download.pytorch.org/whl/cpu

v1.12.0

Conda

OSX
# condaconda install pytorch==1.12.0 torchvision==0.13.0 torchaudio==0.12.0 -c pytorch
Linux and Windows
# CUDA 10.2conda install pytorch==1.12.0 torchvision==0.13.0 torchaudio==0.12.0 cudatoolkit=10.2 -c pytorch# CUDA 11.3conda install pytorch==1.12.0 torchvision==0.13.0 torchaudio==0.12.0 cudatoolkit=11.3 -c pytorch# CUDA 11.6conda install pytorch==1.12.0 torchvision==0.13.0 torchaudio==0.12.0 cudatoolkit=11.6 -c pytorch -c conda-forge# CPU Onlyconda install pytorch==1.12.0 torchvision==0.13.0 torchaudio==0.12.0 cpuonly -c pytorch

Wheel

OSX
pip install torch==1.12.0 torchvision==0.13.0 torchaudio==0.12.0
Linux and Windows
# ROCM 5.1.1 (Linux only)pip install torch==1.12.0+rocm5.1.1 torchvision==0.13.0+rocm5.1.1 torchaudio==0.12.0 --extra-index-url https://download.pytorch.org/whl/rocm5.1.1# CUDA 11.6pip install torch==1.12.0+cu116 torchvision==0.13.0+cu116 torchaudio==0.12.0 --extra-index-url https://download.pytorch.org/whl/cu116# CUDA 11.3pip install torch==1.12.0+cu113 torchvision==0.13.0+cu113 torchaudio==0.12.0 --extra-index-url https://download.pytorch.org/whl/cu113# CUDA 10.2pip install torch==1.12.0+cu102 torchvision==0.13.0+cu102 torchaudio==0.12.0 --extra-index-url https://download.pytorch.org/whl/cu102# CPU onlypip install torch==1.12.0+cpu torchvision==0.13.0+cpu torchaudio==0.12.0 --extra-index-url https://download.pytorch.org/whl/cpu

v1.11.0

Conda

OSX
# condaconda install pytorch==1.11.0 torchvision==0.12.0 torchaudio==0.11.0 -c pytorch
Linux and Windows
# CUDA 10.2conda install pytorch==1.11.0 torchvision==0.12.0 torchaudio==0.11.0 cudatoolkit=10.2 -c pytorch# CUDA 11.3conda install pytorch==1.11.0 torchvision==0.12.0 torchaudio==0.11.0 cudatoolkit=11.3 -c pytorch# CPU Onlyconda install pytorch==1.11.0 torchvision==0.12.0 torchaudio==0.11.0 cpuonly -c pytorch

Wheel

OSX
pip install torch==1.11.0 torchvision==0.12.0 torchaudio==0.11.0
Linux and Windows
# ROCM 4.5.2 (Linux only)pip install torch==1.11.0+rocm4.5.2 torchvision==0.12.0+rocm4.5.2 torchaudio==0.11.0 --extra-index-url https://download.pytorch.org/whl/rocm4.5.2# CUDA 11.3pip install torch==1.11.0+cu113 torchvision==0.12.0+cu113 torchaudio==0.11.0 --extra-index-url https://download.pytorch.org/whl/cu113# CUDA 10.2pip install torch==1.11.0+cu102 torchvision==0.12.0+cu102 torchaudio==0.11.0 --extra-index-url https://download.pytorch.org/whl/cu102# CPU onlypip install torch==1.11.0+cpu torchvision==0.12.0+cpu torchaudio==0.11.0 --extra-index-url https://download.pytorch.org/whl/cpu

v1.10.1

Conda

OSX
# condaconda install pytorch==1.10.1 torchvision==0.11.2 torchaudio==0.10.1 -c pytorch
Linux and Windows
# CUDA 10.2conda install pytorch==1.10.1 torchvision==0.11.2 torchaudio==0.10.1 cudatoolkit=10.2 -c pytorch# CUDA 11.3conda install pytorch==1.10.1 torchvision==0.11.2 torchaudio==0.10.1 cudatoolkit=11.3 -c pytorch -c conda-forge# CPU Onlyconda install pytorch==1.10.1 torchvision==0.11.2 torchaudio==0.10.1 cpuonly -c pytorch

Wheel

OSX
pip install torch==1.10.1 torchvision==0.11.2 torchaudio==0.10.1
Linux and Windows
# ROCM 4.2 (Linux only)pip install torch==1.10.1+rocm4.2 torchvision==0.11.2+rocm4.2 torchaudio==0.10.1 -f https://download.pytorch.org/whl/rocm4.2/torch_stable.html# ROCM 4.1 (Linux only)pip install torch==1.10.1+rocm4.1 torchvision==0.11.2+rocm4.1 torchaudio==0.10.1 -f https://download.pytorch.org/whl/torch_stable.html# ROCM 4.0.1 (Linux only)pip install torch==1.10.1+rocm4.0.1 torchvision==0.10.2+rocm4.0.1 torchaudio==0.10.1 -f https://download.pytorch.org/whl/torch_stable.html# CUDA 11.1pip install torch==1.10.1+cu111 torchvision==0.11.2+cu111 torchaudio==0.10.1 -f https://download.pytorch.org/whl/cu111/torch_stable.html# CUDA 10.2pip install torch==1.10.1+cu102 torchvision==0.11.2+cu102 torchaudio==0.10.1 -f https://download.pytorch.org/whl/cu102/torch_stable.html# CPU onlypip install torch==1.10.1+cpu torchvision==0.11.2+cpu torchaudio==0.10.1 -f https://download.pytorch.org/whl/cpu/torch_stable.html

v1.10.0

Conda

OSX
# condaconda install pytorch==1.10.0 torchvision==0.11.0 torchaudio==0.10.0 -c pytorch
Linux and Windows
# CUDA 10.2conda install pytorch==1.10.0 torchvision==0.11.0 torchaudio==0.10.0 cudatoolkit=10.2 -c pytorch# CUDA 11.3conda install pytorch==1.10.0 torchvision==0.11.0 torchaudio==0.10.0 cudatoolkit=11.3 -c pytorch -c conda-forge# CPU Onlyconda install pytorch==1.10.0 torchvision==0.11.0 torchaudio==0.10.0 cpuonly -c pytorch

Wheel

OSX
pip install torch==1.10.0 torchvision==0.11.0 torchaudio==0.10.0
Linux and Windows
# ROCM 4.2 (Linux only)pip install torch==1.10.0+rocm4.2 torchvision==0.11.0+rocm4.2 torchaudio==0.10.0 -f https://download.pytorch.org/whl/torch_stable.html# ROCM 4.1 (Linux only)pip install torch==1.10.0+rocm4.1 torchvision==0.11.0+rocm4.1 torchaudio==0.10.0 -f https://download.pytorch.org/whl/torch_stable.html# ROCM 4.0.1 (Linux only)pip install torch==1.10.0+rocm4.0.1 torchvision==0.10.1+rocm4.0.1 torchaudio==0.10.0 -f https://download.pytorch.org/whl/torch_stable.html# CUDA 11.1pip install torch==1.10.0+cu111 torchvision==0.11.0+cu111 torchaudio==0.10.0 -f https://download.pytorch.org/whl/torch_stable.html# CUDA 10.2pip install torch==1.10.0+cu102 torchvision==0.11.0+cu102 torchaudio==0.10.0 -f https://download.pytorch.org/whl/torch_stable.html# CPU onlypip install torch==1.10.0+cpu torchvision==0.11.0+cpu torchaudio==0.10.0 -f https://download.pytorch.org/whl/torch_stable.html

v1.9.1

Conda

OSX
# condaconda install pytorch==1.9.1 torchvision==0.10.1 torchaudio==0.9.1 -c pytorch
Linux and Windows
# CUDA 10.2conda install pytorch==1.9.1 torchvision==0.10.1 torchaudio==0.9.1 cudatoolkit=10.2 -c pytorch# CUDA 11.3conda install pytorch==1.9.1 torchvision==0.10.1 torchaudio==0.9.1 cudatoolkit=11.3 -c pytorch -c conda-forge# CPU Onlyconda install pytorch==1.9.1 torchvision==0.10.1 torchaudio==0.9.1 cpuonly -c pytorch

Wheel

OSX
pip install torch==1.9.1 torchvision==0.10.1 torchaudio==0.9.1
Linux and Windows
# ROCM 4.2 (Linux only)pip install torch==1.9.1+rocm4.2 torchvision==0.10.1+rocm4.2 torchaudio==0.9.1 -f https://download.pytorch.org/whl/torch_stable.html# ROCM 4.1 (Linux only)pip install torch==1.9.1+rocm4.1 torchvision==0.10.1+rocm4.1 torchaudio==0.9.1 -f https://download.pytorch.org/whl/torch_stable.html# ROCM 4.0.1 (Linux only)pip install torch==1.9.1+rocm4.0.1 torchvision==0.10.1+rocm4.0.1 torchaudio==0.9.1 -f https://download.pytorch.org/whl/torch_stable.html# CUDA 11.1pip install torch==1.9.1+cu111 torchvision==0.10.1+cu111 torchaudio==0.9.1 -f https://download.pytorch.org/whl/torch_stable.html# CUDA 10.2pip install torch==1.9.1+cu102 torchvision==0.10.1+cu102 torchaudio==0.9.1 -f https://download.pytorch.org/whl/torch_stable.html# CPU onlypip install torch==1.9.1+cpu torchvision==0.10.1+cpu torchaudio==0.9.1 -f https://download.pytorch.org/whl/torch_stable.html

v1.9.0

Conda

OSX
# condaconda install pytorch==1.9.0 torchvision==0.10.0 torchaudio==0.9.0 -c pytorch
Linux and Windows
# CUDA 10.2conda install pytorch==1.9.0 torchvision==0.10.0 torchaudio==0.9.0 cudatoolkit=10.2 -c pytorch# CUDA 11.3conda install pytorch==1.9.0 torchvision==0.10.0 torchaudio==0.9.0 cudatoolkit=11.3 -c pytorch -c conda-forge# CPU Onlyconda install pytorch==1.9.0 torchvision==0.10.0 torchaudio==0.9.0 cpuonly -c pytorch

Wheel

OSX
pip install torch==1.9.0 torchvision==0.10.0 torchaudio==0.9.0
Linux and Windows
# ROCM 4.2 (Linux only)pip install torch==1.9.0+rocm4.2 torchvision==0.10.0+rocm4.2 torchaudio==0.9.0 -f https://download.pytorch.org/whl/torch_stable.html# ROCM 4.1 (Linux only)pip install torch==1.9.0+rocm4.1 torchvision==0.10.0+rocm4.1 torchaudio==0.9.0 -f https://download.pytorch.org/whl/torch_stable.html# ROCM 4.0.1 (Linux only)pip install torch==1.9.0+rocm4.0.1 torchvision==0.10.0+rocm4.0.1 torchaudio==0.9.0 -f https://download.pytorch.org/whl/torch_stable.html# CUDA 11.1pip install torch==1.9.0+cu111 torchvision==0.10.0+cu111 torchaudio==0.9.0 -f https://download.pytorch.org/whl/torch_stable.html# CUDA 10.2pip install torch==1.9.0+cu102 torchvision==0.10.0+cu102 torchaudio==0.9.0 -f https://download.pytorch.org/whl/torch_stable.html# CPU onlypip install torch==1.9.0+cpu torchvision==0.10.0+cpu torchaudio==0.9.0 -f https://download.pytorch.org/whl/torch_stable.html

v1.8.2 with LTS support

Conda

OSX

macOS is currently not supported for LTS.

Linux and Windows
# CUDA 10.2# NOTE: PyTorch LTS version 1.8.2 is only supported for Python <= 3.8.conda install pytorch torchvision torchaudio cudatoolkit=10.2 -c pytorch-lts# CUDA 11.1 (Linux)# NOTE: 'nvidia' channel is required for cudatoolkit 11.1 <br> <b>NOTE:</b> Pytorch LTS version 1.8.2 is only supported for Python <= 3.8.conda install pytorch torchvision torchaudio cudatoolkit=11.1 -c pytorch-lts -c nvidia# CUDA 11.1 (Windows)# 'conda-forge' channel is required for cudatoolkit 11.1 <br> <b>NOTE:</b> Pytorch LTS version 1.8.2 is only supported for Python <= 3.8.conda install pytorch torchvision torchaudio cudatoolkit=11.1 -c pytorch-lts -c conda-forge# CPU Only# Pytorch LTS version 1.8.2 is only supported for Python <= 3.8.conda install pytorch torchvision torchaudio cpuonly -c pytorch-lts# ROCM5.xNot supported in LTS.

Wheel

OSX

macOS is currently not supported in LTS.

Linux and Windows
# CUDA 10.2pip3 install torch==1.8.2 torchvision==0.9.2 torchaudio==0.8.2 --extra-index-url https://download.pytorch.org/whl/lts/1.8/cu102# CUDA 11.1pip3 install torch==1.8.2 torchvision==0.9.2 torchaudio==0.8.2 --extra-index-url https://download.pytorch.org/whl/lts/1.8/cu111# CPU Onlypip3 install torch==1.8.2 torchvision==0.9.2 torchaudio==0.8.2 --extra-index-url https://download.pytorch.org/whl/lts/1.8/cpu# ROCM5.xNot supported in LTS.

v1.8.1

Conda

OSX
# condaconda install pytorch==1.8.1 torchvision==0.9.1 torchaudio==0.8.1 -c pytorch
Linux and Windows
# CUDA 10.2conda install pytorch==1.8.1 torchvision==0.9.1 torchaudio==0.8.1 cudatoolkit=10.2 -c pytorch# CUDA 11.3conda install pytorch==1.8.1 torchvision==0.9.1 torchaudio==0.8.1 cudatoolkit=11.3 -c pytorch -c conda-forge# CPU Onlyconda install pytorch==1.8.1 torchvision==0.9.1 torchaudio==0.8.1 cpuonly -c pytorch

Wheel

OSX
pip install torch==1.8.1 torchvision==0.9.1 torchaudio==0.8.1
Linux and Windows
# ROCM 4.0.1 (Linux only)pip install torch==1.8.1+rocm4.0.1 torchvision==0.9.1+rocm4.0.1 torchaudio==0.8.1 -f https://download.pytorch.org/whl/torch_stable.html# ROCM 3.10 (Linux only)pip install torch==1.8.1+rocm3.10 torchvision==0.9.1+rocm3.10 torchaudio==0.8.1 -f https://download.pytorch.org/whl/torch_stable.html# CUDA 11.1pip install torch==1.8.1+cu111 torchvision==0.9.1+cu111 torchaudio==0.8.1 -f https://download.pytorch.org/whl/torch_stable.html# CUDA 10.2pip install torch==1.8.1+cu102 torchvision==0.9.1+cu102 torchaudio==0.8.1 -f https://download.pytorch.org/whl/torch_stable.html# CUDA 10.1pip install torch==1.8.1+cu101 torchvision==0.9.1+cu101 torchaudio==0.8.1 -f https://download.pytorch.org/whl/torch_stable.html# CPU onlypip install torch==1.8.1+cpu torchvision==0.9.1+cpu torchaudio==0.8.1 -f https://download.pytorch.org/whl/torch_stable.html

v1.8.0

Conda

OSX
# condaconda install pytorch==1.8.0 torchvision==0.9.0 torchaudio==0.8.0 -c pytorch
Linux and Windows
# CUDA 10.2conda install pytorch==1.8.0 torchvision==0.9.0 torchaudio==0.8.0 cudatoolkit=10.2 -c pytorch# CUDA 11.1conda install pytorch==1.8.0 torchvision==0.9.0 torchaudio==0.8.0 cudatoolkit=11.1 -c pytorch -c conda-forge# CPU Onlyconda install pytorch==1.8.0 torchvision==0.9.0 torchaudio==0.8.0 cpuonly -c pytorch

Wheel

OSX
pip install torch==1.8.0 torchvision==0.9.0 torchaudio==0.8.0
Linux and Windows
# RocM 4.0.1 (Linux only)pip install torch -f https://download.pytorch.org/whl/rocm4.0.1/torch_stable.htmlpip install ninjapip install 'git+https://github.com/pytorch/vision.git@v0.9.0'# CUDA 11.1pip install torch==1.8.0+cu111 torchvision==0.9.0+cu111 torchaudio==0.8.0 -f https://download.pytorch.org/whl/torch_stable.html# CUDA 10.2pip install torch==1.8.0 torchvision==0.9.0 torchaudio==0.8.0# CPU onlypip install torch==1.8.0+cpu torchvision==0.9.0+cpu torchaudio==0.8.0 -f https://download.pytorch.org/whl/torch_stable.html

v1.7.1

Conda

OSX
# condaconda install pytorch==1.7.1 torchvision==0.8.2 torchaudio==0.7.2 -c pytorch
Linux and Windows
# CUDA 9.2conda install pytorch==1.7.1 torchvision==0.8.2 torchaudio==0.7.2 cudatoolkit=9.2 -c pytorch# CUDA 10.1conda install pytorch==1.7.1 torchvision==0.8.2 torchaudio==0.7.2 cudatoolkit=10.1 -c pytorch# CUDA 10.2conda install pytorch==1.7.1 torchvision==0.8.2 torchaudio==0.7.2 cudatoolkit=10.2 -c pytorch# CUDA 11.0conda install pytorch==1.7.1 torchvision==0.8.2 torchaudio==0.7.2 cudatoolkit=11.0 -c pytorch# CPU Onlyconda install pytorch==1.7.1 torchvision==0.8.2 torchaudio==0.7.2 cpuonly -c pytorch

Wheel

OSX
pip install torch==1.7.1 torchvision==0.8.2 torchaudio==0.7.2
Linux and Windows
# CUDA 11.0pip install torch==1.7.1+cu110 torchvision==0.8.2+cu110 torchaudio==0.7.2 -f https://download.pytorch.org/whl/torch_stable.html# CUDA 10.2pip install torch==1.7.1 torchvision==0.8.2 torchaudio==0.7.2# CUDA 10.1pip install torch==1.7.1+cu101 torchvision==0.8.2+cu101 torchaudio==0.7.2 -f https://download.pytorch.org/whl/torch_stable.html# CUDA 9.2pip install torch==1.7.1+cu92 torchvision==0.8.2+cu92 torchaudio==0.7.2 -f https://download.pytorch.org/whl/torch_stable.html# CPU onlypip install torch==1.7.1+cpu torchvision==0.8.2+cpu torchaudio==0.7.2 -f https://download.pytorch.org/whl/torch_stable.html

v1.7.0

Conda

OSX
# condaconda install pytorch==1.7.0 torchvision==0.8.0 torchaudio==0.7.0 -c pytorch
Linux and Windows
# CUDA 9.2conda install pytorch==1.7.0 torchvision==0.8.0 torchaudio==0.7.0 cudatoolkit=9.2 -c pytorch# CUDA 10.1conda install pytorch==1.7.0 torchvision==0.8.0 torchaudio==0.7.0 cudatoolkit=10.1 -c pytorch# CUDA 10.2conda install pytorch==1.7.0 torchvision==0.8.0 torchaudio==0.7.0 cudatoolkit=10.2 -c pytorch# CUDA 11.0conda install pytorch==1.7.0 torchvision==0.8.0 torchaudio==0.7.0 cudatoolkit=11.0 -c pytorch# CPU Onlyconda install pytorch==1.7.0 torchvision==0.8.0 torchaudio==0.7.0 cpuonly -c pytorch

Wheel

OSX
pip install torch==1.7.0 torchvision==0.8.0 torchaudio==0.7.0
Linux and Windows
# CUDA 11.0pip install torch==1.7.0+cu110 torchvision==0.8.0+cu110 torchaudio==0.7.0 -f https://download.pytorch.org/whl/torch_stable.html# CUDA 10.2pip install torch==1.7.0 torchvision==0.8.0 torchaudio==0.7.0# CUDA 10.1pip install torch==1.7.0+cu101 torchvision==0.8.0+cu101 torchaudio==0.7.0 -f https://download.pytorch.org/whl/torch_stable.html# CUDA 9.2pip install torch==1.7.0+cu92 torchvision==0.8.0+cu92 torchaudio==0.7.0 -f https://download.pytorch.org/whl/torch_stable.html# CPU onlypip install torch==1.7.0+cpu torchvision==0.8.0+cpu torchaudio==0.7.0 -f https://download.pytorch.org/whl/torch_stable.html

v1.6.0

Conda

OSX
# condaconda install pytorch==1.6.0 torchvision==0.7.0 -c pytorch
Linux and Windows
# CUDA 9.2conda install pytorch==1.6.0 torchvision==0.7.0 cudatoolkit=9.2 -c pytorch# CUDA 10.1conda install pytorch==1.6.0 torchvision==0.7.0 cudatoolkit=10.1 -c pytorch# CUDA 10.2conda install pytorch==1.6.0 torchvision==0.7.0 cudatoolkit=10.2 -c pytorch# CPU Onlyconda install pytorch==1.6.0 torchvision==0.7.0 cpuonly -c pytorch

Wheel

OSX
pip install torch==1.6.0 torchvision==0.7.0
Linux and Windows
# CUDA 10.2pip install torch==1.6.0 torchvision==0.7.0# CUDA 10.1pip install torch==1.6.0+cu101 torchvision==0.7.0+cu101 -f https://download.pytorch.org/whl/torch_stable.html# CUDA 9.2pip install torch==1.6.0+cu92 torchvision==0.7.0+cu92 -f https://download.pytorch.org/whl/torch_stable.html# CPU onlypip install torch==1.6.0+cpu torchvision==0.7.0+cpu -f https://download.pytorch.org/whl/torch_stable.html

v1.5.1

Conda

OSX
# condaconda install pytorch==1.5.1 torchvision==0.6.1 -c pytorch
Linux and Windows
# CUDA 9.2conda install pytorch==1.5.1 torchvision==0.6.1 cudatoolkit=9.2 -c pytorch# CUDA 10.1conda install pytorch==1.5.1 torchvision==0.6.1 cudatoolkit=10.1 -c pytorch# CUDA 10.2conda install pytorch==1.5.1 torchvision==0.6.1 cudatoolkit=10.2 -c pytorch# CPU Onlyconda install pytorch==1.5.1 torchvision==0.6.1 cpuonly -c pytorch

Wheel

OSX
pip install torch==1.5.1 torchvision==0.6.1
Linux and Windows
# CUDA 10.2pip install torch==1.5.1 torchvision==0.6.1# CUDA 10.1pip install torch==1.5.1+cu101 torchvision==0.6.1+cu101 -f https://download.pytorch.org/whl/torch_stable.html# CUDA 9.2pip install torch==1.5.1+cu92 torchvision==0.6.1+cu92 -f https://download.pytorch.org/whl/torch_stable.html# CPU onlypip install torch==1.5.1+cpu torchvision==0.6.1+cpu -f https://download.pytorch.org/whl/torch_stable.html

v1.5.0

Conda

OSX
# condaconda install pytorch==1.5.0 torchvision==0.6.0 -c pytorch
Linux and Windows
# CUDA 9.2conda install pytorch==1.5.0 torchvision==0.6.0 cudatoolkit=9.2 -c pytorch# CUDA 10.1conda install pytorch==1.5.0 torchvision==0.6.0 cudatoolkit=10.1 -c pytorch# CUDA 10.2conda install pytorch==1.5.0 torchvision==0.6.0 cudatoolkit=10.2 -c pytorch# CPU Onlyconda install pytorch==1.5.0 torchvision==0.6.0 cpuonly -c pytorch

Wheel

OSX
pip install torch==1.5.0 torchvision==0.6.0
Linux and Windows
# CUDA 10.2pip install torch==1.5.0 torchvision==0.6.0# CUDA 10.1pip install torch==1.5.0+cu101 torchvision==0.6.0+cu101 -f https://download.pytorch.org/whl/torch_stable.html# CUDA 9.2pip install torch==1.5.0+cu92 torchvision==0.6.0+cu92 -f https://download.pytorch.org/whl/torch_stable.html# CPU onlypip install torch==1.5.0+cpu torchvision==0.6.0+cpu -f https://download.pytorch.org/whl/torch_stable.html

v1.4.0

Conda

OSX
# condaconda install pytorch==1.4.0 torchvision==0.5.0 -c pytorch
Linux and Windows
# CUDA 9.2conda install pytorch==1.4.0 torchvision==0.5.0 cudatoolkit=9.2 -c pytorch# CUDA 10.1conda install pytorch==1.4.0 torchvision==0.5.0 cudatoolkit=10.1 -c pytorch# CPU Onlyconda install pytorch==1.4.0 torchvision==0.5.0 cpuonly -c pytorch

Wheel

OSX
pip install torch==1.4.0 torchvision==0.5.0
Linux and Windows
# CUDA 10.1pip install torch==1.4.0 torchvision==0.5.0# CUDA 9.2pip install torch==1.4.0+cu92 torchvision==0.5.0+cu92 -f https://download.pytorch.org/whl/torch_stable.html# CPU onlypip install torch==1.4.0+cpu torchvision==0.5.0+cpu -f https://download.pytorch.org/whl/torch_stable.html

v1.2.0

Conda

OSX
# condaconda install pytorch==1.2.0 torchvision==0.4.0 -c pytorch
Linux and Windows
# CUDA 9.2conda install pytorch==1.2.0 torchvision==0.4.0 cudatoolkit=9.2 -c pytorch# CUDA 10.0conda install pytorch==1.2.0 torchvision==0.4.0 cudatoolkit=10.0 -c pytorch# CPU Onlyconda install pytorch==1.2.0 torchvision==0.4.0 cpuonly -c pytorch

Wheel

OSX
pip install torch==1.2.0 torchvision==0.4.0
Linux and Windows
# CUDA 10.0pip install torch==1.2.0 torchvision==0.4.0# CUDA 9.2pip install torch==1.2.0+cu92 torchvision==0.4.0+cu92 -f https://download.pytorch.org/whl/torch_stable.html# CPU onlypip install torch==1.2.0+cpu torchvision==0.4.0+cpu -f https://download.pytorch.org/whl/torch_stable.html

v1.1.0

Conda

OSX
# condaconda install pytorch==1.1.0 torchvision==0.3.0 -c pytorch
Linux and Windows
# CUDA 9.0conda install pytorch==1.1.0 torchvision==0.3.0 cudatoolkit=9.0 -c pytorch# CUDA 10.0conda install pytorch==1.1.0 torchvision==0.3.0 cudatoolkit=10.0 -c pytorch# CPU Onlyconda install pytorch-cpu==1.1.0 torchvision-cpu==0.3.0 cpuonly -c pytorch

Wheel

OSX
pip install torch==1.1.0 torchvision==0.3.0
Linux and Windows
# CUDA 10.0Download and install wheel from https://download.pytorch.org/whl/cu100/torch_stable.html# CUDA 9.0Download and install wheel from https://download.pytorch.org/whl/cu90/torch_stable.html# CPU onlyDownload and install wheel from https://download.pytorch.org/whl/cpu/torch_stable.html

v1.0.1

Conda

OSX
# condaconda install pytorch==1.0.1 torchvision==0.2.2 -c pytorch
Linux and Windows
# CUDA 9.0conda install pytorch==1.0.1 torchvision==0.2.2 cudatoolkit=9.0 -c pytorch# CUDA 10.0conda install pytorch==1.0.1 torchvision==0.2.2 cudatoolkit=10.0 -c pytorch# CPU Onlyconda install pytorch-cpu==1.0.1 torchvision-cpu==0.2.2 cpuonly -c pytorch

Wheel

OSX
pip install torch==1.0.1 torchvision==0.2.2
Linux and Windows
# CUDA 10.0Download and install wheel from https://download.pytorch.org/whl/cu100/torch_stable.html# CUDA 9.0Download and install wheel from https://download.pytorch.org/whl/cu90/torch_stable.html# CPU onlyDownload and install wheel from https://download.pytorch.org/whl/cpu/torch_stable.html

v1.0.0

Conda

OSX
# condaconda install pytorch==1.0.0 torchvision==0.2.1 -c pytorch
Linux and Windows
# CUDA 10.0conda install pytorch==1.0.0 torchvision==0.2.1 cuda100 -c pytorch# CUDA 9.0conda install pytorch==1.0.0 torchvision==0.2.1 cuda90 -c pytorch# CUDA 8.0conda install pytorch==1.0.0 torchvision==0.2.1 cuda80 -c pytorch# CPU Onlyconda install pytorch-cpu==1.0.0 torchvision-cpu==0.2.1 cpuonly -c pytorch

Wheel

OSX
pip install torch==1.0.0 torchvision==0.2.1
Linux and Windows
# CUDA 10.0Download and install wheel from https://download.pytorch.org/whl/cu100/torch_stable.html# CUDA 9.0Download and install wheel from https://download.pytorch.org/whl/cu90/torch_stable.html# CUDA 8.0Download and install wheel from https://download.pytorch.org/whl/cu80/torch_stable.html# CPU onlyDownload and install wheel from https://download.pytorch.org/whl/cpu/torch_stable.html

Commands for Versions < 1.0.0

Via conda

This should be used for most previous macOS version installs.

To install a previous version of PyTorch via Anaconda or Miniconda,replace “0.4.1” in the following commands with the desired version(i.e., “0.2.0”).

Installing with CUDA 9

conda install pytorch=0.4.1 cuda90 -c pytorch

or

conda install pytorch=0.4.1 cuda92 -c pytorch

Installing with CUDA 8

conda install pytorch=0.4.1 cuda80 -c pytorch

Installing with CUDA 7.5

conda install pytorch=0.4.1 cuda75 -c pytorch

Installing without CUDA

conda install pytorch=0.4.1 -c pytorch

From source

It is possible to checkout an older version of PyTorchand build it.You can list tags in PyTorch git repository with git tag and checkout aparticular one (replace ‘0.1.9’ with the desired version) with

git checkout v0.1.9

Follow the install from source instructions in the README.md of the PyTorchcheckout.

Via pip

Download the whl file with the desired version from the following html pages:

  • https://download.pytorch.org/whl/cpu/torch_stable.html # CPU-only build
  • https://download.pytorch.org/whl/cu80/torch_stable.html # CUDA 8.0 build
  • https://download.pytorch.org/whl/cu90/torch_stable.html # CUDA 9.0 build
  • https://download.pytorch.org/whl/cu92/torch_stable.html # CUDA 9.2 build
  • https://download.pytorch.org/whl/cu100/torch_stable.html # CUDA 10.0 build

Then, install the file with pip install [downloaded file]

Note: most pytorch versions are available only for specific CUDA versions. For example pytorch=1.0.1 is not available for CUDA 9.2

(Old) PyTorch Linux binaries compiled with CUDA 7.5

These predate the html page above and have to be manually installed by downloading the wheel file and pip install downloaded_file

  • cu75/torch-0.3.0.post4-cp36-cp36m-linux_x86_64.whl
  • cu75/torch-0.3.0.post4-cp35-cp35m-linux_x86_64.whl
  • cu75/torch-0.3.0.post4-cp27-cp27mu-linux_x86_64.whl
  • cu75/torch-0.3.0.post4-cp27-cp27m-linux_x86_64.whl
  • cu75/torch-0.2.0.post3-cp36-cp36m-manylinux1_x86_64.whl
  • cu75/torch-0.2.0.post3-cp35-cp35m-manylinux1_x86_64.whl
  • cu75/torch-0.2.0.post3-cp27-cp27mu-manylinux1_x86_64.whl
  • cu75/torch-0.2.0.post3-cp27-cp27m-manylinux1_x86_64.whl
  • cu75/torch-0.2.0.post2-cp36-cp36m-manylinux1_x86_64.whl
  • cu75/torch-0.2.0.post2-cp35-cp35m-manylinux1_x86_64.whl
  • cu75/torch-0.2.0.post2-cp27-cp27mu-manylinux1_x86_64.whl
  • cu75/torch-0.2.0.post2-cp27-cp27m-manylinux1_x86_64.whl
  • cu75/torch-0.2.0.post1-cp36-cp36m-manylinux1_x86_64.whl
  • cu75/torch-0.2.0.post1-cp35-cp35m-manylinux1_x86_64.whl
  • cu75/torch-0.2.0.post1-cp27-cp27mu-manylinux1_x86_64.whl
  • cu75/torch-0.2.0.post1-cp27-cp27m-manylinux1_x86_64.whl
  • cu75/torch-0.1.12.post2-cp36-cp36m-linux_x86_64.whl
  • cu75/torch-0.1.12.post2-cp35-cp35m-linux_x86_64.whl
  • cu75/torch-0.1.12.post2-cp27-none-linux_x86_64.whl
  • cu75/torch-0.1.12.post1-cp36-cp36m-linux_x86_64.whl
  • cu75/torch-0.1.12.post1-cp35-cp35m-linux_x86_64.whl
  • cu75/torch-0.1.12.post1-cp27-none-linux_x86_64.whl
  • cu75/torch-0.1.11.post5-cp36-cp36m-linux_x86_64.whl
  • cu75/torch-0.1.11.post5-cp35-cp35m-linux_x86_64.whl
  • cu75/torch-0.1.11.post5-cp27-none-linux_x86_64.whl
  • cu75/torch-0.1.11.post4-cp36-cp36m-linux_x86_64.whl
  • cu75/torch-0.1.11.post4-cp35-cp35m-linux_x86_64.whl
  • cu75/torch-0.1.11.post4-cp27-none-linux_x86_64.whl
  • cu75/torch-0.1.10.post2-cp36-cp36m-linux_x86_64.whl
  • cu75/torch-0.1.10.post2-cp35-cp35m-linux_x86_64.whl
  • cu75/torch-0.1.10.post2-cp27-none-linux_x86_64.whl
  • cu75/torch-0.1.10.post1-cp36-cp36m-linux_x86_64.whl
  • cu75/torch-0.1.10.post1-cp35-cp35m-linux_x86_64.whl
  • cu75/torch-0.1.10.post1-cp27-none-linux_x86_64.whl
  • cu75/torch-0.1.9.post2-cp36-cp36m-linux_x86_64.whl
  • cu75/torch-0.1.9.post2-cp35-cp35m-linux_x86_64.whl
  • cu75/torch-0.1.9.post2-cp27-none-linux_x86_64.whl
  • cu75/torch-0.1.9.post1-cp36-cp36m-linux_x86_64.whl
  • cu75/torch-0.1.9.post1-cp35-cp35m-linux_x86_64.whl
  • cu75/torch-0.1.9.post1-cp27-none-linux_x86_64.whl
  • cu75/torch-0.1.8.post1-cp36-cp36m-linux_x86_64.whl
  • cu75/torch-0.1.8.post1-cp35-cp35m-linux_x86_64.whl
  • cu75/torch-0.1.8.post1-cp27-none-linux_x86_64.whl
  • cu75/torch-0.1.7.post2-cp36-cp36m-linux_x86_64.whl
  • cu75/torch-0.1.7.post2-cp35-cp35m-linux_x86_64.whl
  • cu75/torch-0.1.7.post2-cp27-none-linux_x86_64.whl
  • cu75/torch-0.1.6.post22-cp35-cp35m-linux_x86_64.whl
  • cu75/torch-0.1.6.post22-cp27-none-linux_x86_64.whl
  • cu75/torch-0.1.6.post20-cp35-cp35m-linux_x86_64.whl
  • cu75/torch-0.1.6.post20-cp27-cp27mu-linux_x86_64.whl

Windows binaries

  • cpu/torch-1.0.0-cp35-cp35m-win_amd64.whl
  • cu80/torch-1.0.0-cp35-cp35m-win_amd64.whl
  • cu90/torch-1.0.0-cp35-cp35m-win_amd64.whl
  • cu100/torch-1.0.0-cp35-cp35m-win_amd64.whl
  • cpu/torch-1.0.0-cp36-cp36m-win_amd64.whl
  • cu80/torch-1.0.0-cp36-cp36m-win_amd64.whl
  • cu90/torch-1.0.0-cp36-cp36m-win_amd64.whl
  • cu100/torch-1.0.0-cp36-cp36m-win_amd64.whl
  • cpu/torch-1.0.0-cp37-cp37m-win_amd64.whl
  • cu80/torch-1.0.0-cp37-cp37m-win_amd64.whl
  • cu90/torch-1.0.0-cp37-cp37m-win_amd64.whl
  • cu100/torch-1.0.0-cp37-cp37m-win_amd64.whl
  • cpu/torch-0.4.1-cp35-cp35m-win_amd64.whl
  • cu80/torch-0.4.1-cp35-cp35m-win_amd64.whl
  • cu90/torch-0.4.1-cp35-cp35m-win_amd64.whl
  • cu92/torch-0.4.1-cp35-cp35m-win_amd64.whl
  • cpu/torch-0.4.1-cp36-cp36m-win_amd64.whl
  • cu80/torch-0.4.1-cp36-cp36m-win_amd64.whl
  • cu90/torch-0.4.1-cp36-cp36m-win_amd64.whl
  • cu92/torch-0.4.1-cp36-cp36m-win_amd64.whl
  • cpu/torch-0.4.1-cp37-cp37m-win_amd64.whl
  • cu80/torch-0.4.1-cp37-cp37m-win_amd64.whl
  • cu90/torch-0.4.1-cp37-cp37m-win_amd64.whl
  • cu92/torch-0.4.1-cp37-cp37m-win_amd64.whl

Mac and misc. binaries

For recent macOS binaries, use conda:

e.g.,

conda install pytorch=0.4.1 cuda90 -c pytorchconda install pytorch=0.4.1 cuda92 -c pytorchconda install pytorch=0.4.1 cuda80 -c pytorchconda install pytorch=0.4.1 -c pytorch # No CUDA

  • torchvision-0.1.6-py3-none-any.whl
  • torchvision-0.1.6-py2-none-any.whl
  • torch-1.0.0-cp37-none-macosx_10_7_x86_64.whl
  • torch-1.0.0-cp36-none-macosx_10_7_x86_64.whl
  • torch-1.0.0-cp35-none-macosx_10_6_x86_64.whl
  • torch-1.0.0-cp27-none-macosx_10_6_x86_64.whl
  • torch-0.4.0-cp36-cp36m-macosx_10_7_x86_64.whl
  • torch-0.4.0-cp35-cp35m-macosx_10_7_x86_64.whl
  • torch-0.4.0-cp27-none-macosx_10_7_x86_64.whl
  • torch-0.3.1-cp36-cp36m-macosx_10_7_x86_64.whl
  • torch-0.3.1-cp35-cp35m-macosx_10_7_x86_64.whl
  • torch-0.3.1-cp27-none-macosx_10_7_x86_64.whl
  • torch-0.3.0.post4-cp36-cp36m-macosx_10_7_x86_64.whl
  • torch-0.3.0.post4-cp35-cp35m-macosx_10_7_x86_64.whl
  • torch-0.3.0.post4-cp27-none-macosx_10_7_x86_64.whl
  • torch-0.2.0.post3-cp36-cp36m-macosx_10_7_x86_64.whl
  • torch-0.2.0.post3-cp35-cp35m-macosx_10_7_x86_64.whl
  • torch-0.2.0.post3-cp27-none-macosx_10_7_x86_64.whl
  • torch-0.2.0.post2-cp36-cp36m-macosx_10_7_x86_64.whl
  • torch-0.2.0.post2-cp35-cp35m-macosx_10_7_x86_64.whl
  • torch-0.2.0.post2-cp27-none-macosx_10_7_x86_64.whl
  • torch-0.2.0.post1-cp36-cp36m-macosx_10_7_x86_64.whl
  • torch-0.2.0.post1-cp35-cp35m-macosx_10_7_x86_64.whl
  • torch-0.2.0.post1-cp27-none-macosx_10_7_x86_64.whl
  • torch-0.1.12.post2-cp36-cp36m-macosx_10_7_x86_64.whl
  • torch-0.1.12.post2-cp35-cp35m-macosx_10_7_x86_64.whl
  • torch-0.1.12.post2-cp27-none-macosx_10_7_x86_64.whl
  • torch-0.1.12.post1-cp36-cp36m-macosx_10_7_x86_64.whl
  • torch-0.1.12.post1-cp35-cp35m-macosx_10_7_x86_64.whl
  • torch-0.1.12.post1-cp27-none-macosx_10_7_x86_64.whl
  • torch-0.1.11.post5-cp36-cp36m-macosx_10_7_x86_64.whl
  • torch-0.1.11.post5-cp35-cp35m-macosx_10_7_x86_64.whl
  • torch-0.1.11.post5-cp27-none-macosx_10_7_x86_64.whl
  • torch-0.1.11.post4-cp36-cp36m-macosx_10_7_x86_64.whl
  • torch-0.1.11.post4-cp35-cp35m-macosx_10_7_x86_64.whl
  • torch-0.1.11.post4-cp27-none-macosx_10_7_x86_64.whl
  • torch-0.1.10.post1-cp36-cp36m-macosx_10_7_x86_64.whl
  • torch-0.1.10.post1-cp35-cp35m-macosx_10_6_x86_64.whl
  • torch-0.1.10.post1-cp27-none-macosx_10_7_x86_64.whl
  • torch-0.1.9.post2-cp36-cp36m-macosx_10_7_x86_64.whl
  • torch-0.1.9.post2-cp35-cp35m-macosx_10_6_x86_64.whl
  • torch-0.1.9.post2-cp27-none-macosx_10_7_x86_64.whl
  • torch-0.1.9.post1-cp36-cp36m-macosx_10_7_x86_64.whl
  • torch-0.1.9.post1-cp35-cp35m-macosx_10_6_x86_64.whl
  • torch-0.1.9.post1-cp27-none-macosx_10_7_x86_64.whl
  • torch-0.1.8.post1-cp36-cp36m-macosx_10_7_x86_64.whl
  • torch-0.1.8.post1-cp35-cp35m-macosx_10_6_x86_64.whl
  • torch-0.1.8.post1-cp27-none-macosx_10_7_x86_64.whl
  • torch-0.1.7.post2-cp36-cp36m-macosx_10_7_x86_64.whl
  • torch-0.1.7.post2-cp35-cp35m-macosx_10_6_x86_64.whl
  • torch-0.1.7.post2-cp27-none-macosx_10_7_x86_64.whl
  • torch-0.1.6.post22-cp35-cp35m-macosx_10_6_x86_64.whl
  • torch-0.1.6.post22-cp27-none-macosx_10_7_x86_64.whl
  • torch-0.1.6.post20-cp35-cp35m-linux_x86_64.whl
  • torch-0.1.6.post20-cp27-cp27mu-linux_x86_64.whl
  • torch-0.1.6.post17-cp35-cp35m-linux_x86_64.whl
  • torch-0.1.6.post17-cp27-cp27mu-linux_x86_64.whl
  • torch-0.1-cp35-cp35m-macosx_10_6_x86_64.whl
  • torch-0.1-cp27-cp27m-macosx_10_6_x86_64.whl
  • torch_cuda80-0.1.6.post20-cp35-cp35m-linux_x86_64.whl
  • torch_cuda80-0.1.6.post20-cp27-cp27mu-linux_x86_64.whl
  • torch_cuda80-0.1.6.post17-cp35-cp35m-linux_x86_64.whl
  • torch_cuda80-0.1.6.post17-cp27-cp27mu-linux_x86_64.whl
Previous PyTorch Versions (2024)

FAQs

Is PyTorch 2.0 backwards compatible? ›

We believe that this is a substantial new direction for PyTorch – hence we call it 2.0. torch.compile is a fully additive (and optional) feature and hence 2.0 is 100% backward compatible by definition.

Is CUDA 12.1 compatible with PyTorch? ›

Yes, the current PyTorch code base supports all CUDA 12 toolkit versions if you build from source.

What version of python 3.8 is PyTorch? ›

According to the official, PyTorch can work under Python 3.8, however, PyTorch requires networkx package and the latest version of it requires Python 3.9+. So, before installing PyTorch, I have to install the older version of networkx manually by pip install networkx==3.1 .

How do I change my PyTorch version? ›

Steps to Update Pytorch Using Pip
  1. Verify Current Version: Open terminal or command prompt. Type pip show torch and press Enter. ...
  2. Run Update command: Open terminal or command prompt. Type pip install –upgrade torch torchvision torchaudio and press Enter. ...
  3. Verify Update: Open terminal or command prompt.
Feb 13, 2024

Is TensorFlow 2.0 better than PyTorch? ›

PyTorch vs TensorFlow: Both are powerful frameworks with unique strengths; PyTorch is favored for research and dynamic projects, while TensorFlow excels in large-scale and production environments. Ease of Use: PyTorch offers a more intuitive, Pythonic approach, ideal for beginners and rapid prototyping.

What version of Python is PyTorch 2.0 0? ›

Which python version is Pytorch 2.0 supported? Currently, PyTorch on Windows only supports Python 3.7-3.9; Python 2. x is not supported. Python 3.11 is faster compared to Python 3.9.

Can I use CUDA 12.4 with PyTorch? ›

2 support cuda 12.4? Yes, you can build the current PyTorch release from source with CUDA 12.4 while the binaries are being worked on.

Can I run PyTorch without CUDA? ›

No CUDA. To install PyTorch via pip, and do not have a CUDA-capable system or do not require CUDA, in the above selector, choose OS: Windows, Package: Pip and CUDA: None. Then, run the command that is presented to you.

Is PyTorch CUDA backward compatible? ›

Yes, your setup will work since the PyTorch binaries ship with their own CUDA runtime (as well as other CUDA libs such as cuBLAS, cuDNN, NCCL, etc.). The locally installed CUDA toolkit (12.0 in your case) will only be used if you are building PyTorch from source or a custom CUDA extension.

What version of Python is recommended for PyTorch? ›

Install PyTorch

The recommended Python version is 3.8.1+. Choose Correct Visual Studio Version.

What is the current version of PyTorch? ›

PyTorch
Original author(s)Adam Paszke Sam Gross Soumith Chintala Gregory Chanan
Developer(s)Meta AI
Initial releaseSeptember 2016
Stable release2.3.1 / 5 June 2024
Repositorygithub.com/pytorch/pytorch
10 more rows

Is torch the same as PyTorch? ›

Torch is a scientific computing framework for LuaJIT. Torch7 is deprecated, was using Lua , and was the predecessor to PyTorch. It's not the same and you should not use it anymore, as it's not maintained. You might still see some common concepts that were adapted in PyTorch from it.

Why is everyone switching to PyTorch? ›

Ease of Learning and Use

PyTorch is simpler and has a “Pythonic” way of doing things. It's a favourite for beginners and researchers. And its dynamic computation graph means you can change things on the fly, which is great for experimentation.

Do I need to install CUDA for PyTorch? ›

No, you don't need to download a full CUDA toolkit and would only need to install a compatible NVIDIA driver, since PyTorch binaries ship with their own CUDA dependencies.

What is the difference between PyTorch 1 and 2? ›

PyTorch is moving parts from C++ back into Python, making it faster and hackable. With version 2.0, they have introduced `torch. compile`, which has changed how PyTorch operates at the compiler level. This feature is optional and does not affect your old code.

Is PyTorch backward compatible CUDA? ›

Yes, your setup will work since the PyTorch binaries ship with their own CUDA runtime (as well as other CUDA libs such as cuBLAS, cuDNN, NCCL, etc.). The locally installed CUDA toolkit (12.0 in your case) will only be used if you are building PyTorch from source or a custom CUDA extension.

Is TensorFlow 2 backward compatible? ›

MAJOR: Backwards incompatible changes. Code and data that worked with a previous major release will not necessarily work with a new release. However, in some cases existing TensorFlow data (graphs, checkpoints, and other protobufs) may be migratable to the newer release; see below for details on data compatibility.

How does PyTorch backwards work? ›

The backward() method in Pytorch is used to calculate the gradient during the backward pass in the neural network. If we do not call this backward() method then gradients are not calculated for the tensors. The gradient of a tensor is calculated for the one having requires_grad is set to True.

References

Top Articles
Latest Posts
Recommended Articles
Article information

Author: Horacio Brakus JD

Last Updated:

Views: 5527

Rating: 4 / 5 (71 voted)

Reviews: 86% of readers found this page helpful

Author information

Name: Horacio Brakus JD

Birthday: 1999-08-21

Address: Apt. 524 43384 Minnie Prairie, South Edda, MA 62804

Phone: +5931039998219

Job: Sales Strategist

Hobby: Sculling, Kitesurfing, Orienteering, Painting, Computer programming, Creative writing, Scuba diving

Introduction: My name is Horacio Brakus JD, I am a lively, splendid, jolly, vivacious, vast, cheerful, agreeable person who loves writing and wants to share my knowledge and understanding with you.