老版本:
https://pytorch.org/get-started/previous-versions/
最新版本:
conda install pytorch-cpu=0.4.1 torchvision-cpu -c pytorch 无gpu版本安装,指定版本号
torchvision
INSTALLING PREVIOUS VERSIONS OF PYTORCH
We’d prefer you install the latest version, but old binaries and installation instructions are provided below for your convenience.
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 PyTorch and build it. You can list tags in PyTorch git repository with git tag
and checkout a particular 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 PyTorch checkout.
Via pip
Download the whl
file with the desired version from the list below, and run
pip install /path/to/whl/file
You can also directly pass a URL to pip:
pip install https://download.pytorch.org/whl/cu80/torch-0.4.1-cp36-cp36m-linux_x86_64.whl
If you want no CUDA support, the URL would be something like https://download.pytorch.org/whl/cpu/torch-0.4.1-cp36-cp36m-linux_x86_64.whl
There are seven major lists below: Linux binaries compiled with CUDA 9.2, 9.1, 9.0, 8 and 7.5 support, Windows support, and Mac OSX & miscellaneous other binaries.
PyTorch Linux binaries compiled with CUDA 9.2
- cu92/torch-0.4.1-cp27-cp27mu-linux_x86_64.whl
- cu92/torch-0.4.1-cp27-cp27mu-linux_x86_64.whl - for python 2.7 UCS2
- cu92/torch-0.4.1-cp35-cp35m-linux_x86_64.whl
- cu92/torch-0.4.1-cp36-cp36m-linux_x86_64.whl
- cu92/torch-0.4.1.post2-cp37-cp37m-linux_x86_64.whl
PyTorch Linux binaries compiled with CUDA 9.1
- cu91/torch-0.4.0-cp36-cp36m-linux_x86_64.whl
- cu91/torch-0.4.0-cp35-cp35m-linux_x86_64.whl
- cu91/torch-0.4.0-cp27-cp27mu-linux_x86_64.whl
- cu91/torch-0.4.0-cp27-cp27m-linux_x86_64.whl
- cu91/torch-0.3.1-cp36-cp36m-linux_x86_64.whl
- cu91/torch-0.3.1-cp35-cp35m-linux_x86_64.whl
- cu91/torch-0.3.1-cp27-cp27mu-linux_x86_64.whl
- cu91/torch-0.3.1-cp27-cp27m-linux_x86_64.whl
PyTorch Linux binaries compiled with CUDA 9.0
- cu90/torch-0.4.1-cp27-cp27mu-linux_x86_64.whl
- cu90/torch-0.4.1-cp27-cp27mu-linux_x86_64.whl - for python 2.7 UCS2
- cu90/torch-0.4.1-cp35-cp35m-linux_x86_64.whl
- cu90/torch-0.4.1-cp36-cp36m-linux_x86_64.whl
- cu90/torch-0.4.1.post2-cp37-cp37m-linux_x86_64.whl
- cu90/torch-0.4.0-cp36-cp36m-linux_x86_64.whl
- cu90/torch-0.4.0-cp35-cp35m-linux_x86_64.whl
- cu90/torch-0.4.0-cp27-cp27mu-linux_x86_64.whl
- cu90/torch-0.4.0-cp27-cp27m-linux_x86_64.whl
- cu90/torch-0.3.1-cp36-cp36m-linux_x86_64.whl
- cu90/torch-0.3.1-cp35-cp35m-linux_x86_64.whl
- cu90/torch-0.3.1-cp27-cp27mu-linux_x86_64.whl
- cu90/torch-0.3.1-cp27-cp27m-linux_x86_64.whl
- cu90/torch-0.3.0.post4-cp36-cp36m-linux_x86_64.whl
- cu90/torch-0.3.0.post4-cp35-cp35m-linux_x86_64.whl
- cu90/torch-0.3.0.post4-cp27-cp27mu-linux_x86_64.whl
- cu90/torch-0.3.0.post4-cp27-cp27m-linux_x86_64.whl
PyTorch Linux binaries compiled with CUDA 8
- cu80/torch-0.4.1-cp27-cp27mu-linux_x86_64.whl
- cu80/torch-0.4.1-cp27-cp27mu-linux_x86_64.whl - for python 2.7 UCS2
- cu80/torch-0.4.1-cp35-cp35m-linux_x86_64.whl
- cu80/torch-0.4.1-cp36-cp36m-linux_x86_64.whl
- cu80/torch-0.4.1.post2-cp37-cp37m-linux_x86_64.whl
- cu80/torch-0.4.0-cp36-cp36m-linux_x86_64.whl
- cu80/torch-0.4.0-cp35-cp35m-linux_x86_64.whl
- cu80/torch-0.4.0-cp27-cp27mu-linux_x86_64.whl
- cu80/torch-0.4.0-cp27-cp27m-linux_x86_64.whl
- cu80/torch-0.3.1-cp36-cp36m-linux_x86_64.whl
- cu80/torch-0.3.1-cp35-cp35m-linux_x86_64.whl
- cu80/torch-0.3.1-cp27-cp27mu-linux_x86_64.whl
- cu80/torch-0.3.1-cp27-cp27m-linux_x86_64.whl
- cu80/torch-0.3.0.post4-cp36-cp36m-linux_x86_64.whl
- cu80/torch-0.3.0.post4-cp35-cp35m-linux_x86_64.whl
- cu80/torch-0.3.0.post4-cp27-cp27mu-linux_x86_64.whl
- cu80/torch-0.3.0.post4-cp27-cp27m-linux_x86_64.whl
- cu80/torch-0.2.0.post2-cp36-cp36m-manylinux1_x86_64.whl
- cu80/torch-0.2.0.post2-cp35-cp35m-manylinux1_x86_64.whl
- cu80/torch-0.2.0.post2-cp27-cp27mu-manylinux1_x86_64.whl
- cu80/torch-0.2.0.post2-cp27-cp27m-manylinux1_x86_64.whl
- cu80/torch-0.2.0.post3-cp36-cp36m-manylinux1_x86_64.whl
- cu80/torch-0.2.0.post3-cp35-cp35m-manylinux1_x86_64.whl
- cu80/torch-0.2.0.post3-cp27-cp27mu-manylinux1_x86_64.whl
- cu80/torch-0.2.0.post3-cp27-cp27m-manylinux1_x86_64.whl
- cu80/torch-0.2.0.post2-cp36-cp36m-manylinux1_x86_64.whl
- cu80/torch-0.2.0.post2-cp35-cp35m-manylinux1_x86_64.whl
- cu80/torch-0.2.0.post2-cp27-cp27mu-manylinux1_x86_64.whl
- cu80/torch-0.2.0.post2-cp27-cp27m-manylinux1_x86_64.whl
- cu80/torch-0.1.12.post2-cp36-cp36m-linux_x86_64.whl
- cu80/torch-0.1.12.post2-cp35-cp35m-linux_x86_64.whl
- cu80/torch-0.1.12.post2-cp27-none-linux_x86_64.whl
- cu80/torch-0.1.12.post1-cp36-cp36m-linux_x86_64.whl
- cu80/torch-0.1.12.post1-cp35-cp35m-linux_x86_64.whl
- cu80/torch-0.1.12.post1-cp27-none-linux_x86_64.whl
- cu80/torch-0.1.11.post5-cp36-cp36m-linux_x86_64.whl
- cu80/torch-0.1.11.post5-cp35-cp35m-linux_x86_64.whl
- cu80/torch-0.1.11.post5-cp27-none-linux_x86_64.whl
- cu80/torch-0.1.11.post4-cp36-cp36m-linux_x86_64.whl
- cu80/torch-0.1.11.post4-cp35-cp35m-linux_x86_64.whl
- cu80/torch-0.1.11.post4-cp27-none-linux_x86_64.whl
- cu80/torch-0.1.10.post2-cp36-cp36m-linux_x86_64.whl
- cu80/torch-0.1.10.post2-cp35-cp35m-linux_x86_64.whl
- cu80/torch-0.1.10.post2-cp27-none-linux_x86_64.whl
- cu80/torch-0.1.10.post1-cp36-cp36m-linux_x86_64.whl
- cu80/torch-0.1.10.post1-cp35-cp35m-linux_x86_64.whl
- cu80/torch-0.1.10.post1-cp27-none-linux_x86_64.whl
- cu80/torch-0.1.9.post2-cp36-cp36m-linux_x86_64.whl
- cu80/torch-0.1.9.post2-cp35-cp35m-linux_x86_64.whl
- cu80/torch-0.1.9.post2-cp27-none-linux_x86_64.whl
- cu80/torch-0.1.9.post1-cp36-cp36m-linux_x86_64.whl
- cu80/torch-0.1.9.post1-cp35-cp35m-linux_x86_64.whl
- cu80/torch-0.1.9.post1-cp27-none-linux_x86_64.whl
- cu80/torch-0.1.8.post1-cp36-cp36m-linux_x86_64.whl
- cu80/torch-0.1.8.post1-cp35-cp35m-linux_x86_64.whl
- cu80/torch-0.1.8.post1-cp27-none-linux_x86_64.whl
- cu80/torch-0.1.7.post2-cp36-cp36m-linux_x86_64.whl
- cu80/torch-0.1.7.post2-cp35-cp35m-linux_x86_64.whl
- cu80/torch-0.1.7.post2-cp27-none-linux_x86_64.whl
- cu80/torch-0.1.6.post22-cp35-cp35m-linux_x86_64.whl
- cu80/torch-0.1.6.post22-cp27-none-linux_x86_64.whl
- cu80/torch-0.1.6.post20-cp35-cp35m-linux_x86_64.whl
- cu80/torch-0.1.6.post20-cp27-cp27mu-linux_x86_64.whl
PyTorch Linux binaries compiled with CUDA 7.5
- 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
Linux No CUDA binaries
- cpu/torch-0.4.1-cp27-cp27mu-linux_x86_64.whl
- cpu/torch-0.4.1-cp27-cp27m-linux_x86_64.whl - for python 2.7 UCS2
- cpu/torch-0.4.1-cp35-cp35m-linux_x86_64.whl
- cpu/torch-0.4.1-cp36-cp36m-linux_x86_64.whl
- cpu/torch-0.4.1.post2-cp37-cp37m-linux_x86_64.whl
Windows binaries
- 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 pytorch
conda install pytorch=0.4.1 cuda92 -c pytorch
conda install pytorch=0.4.1 cuda80 -c pytorch
conda 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-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