进入PyTorch官网太卡了,好容易进去一次,把所有安装的命令记录一下。
---------------------------------------------------------------------------------------------------2020-9-15
linux-conda-python
CUDA | 9.2 | 10.1 | 10.2 | None |
---|---|---|---|---|
Run | conda install pytorch torchvision cudatoolkit=9.2 -c pytorch | conda install pytorch torchvision cudatoolkit=10.1 -c pytorch | conda install pytorch torchvision cudatoolkit=10.2 -c pytorch | conda install pytorch torchvision cpuonly -c pytorch |
linux-pip-python
CUDA | 9.2 | 10.1 | 10.2 | None |
---|---|---|---|---|
Run | pip install torch==1.6.0+cu92 torchvision==0.7.0+cu92 -f https://download.pytorch.org/whl/torch_stable.html | pip install torch==1.6.0+cu101 torchvision==0.7.0+cu101 -f https://download.pytorch.org/whl/torch_stable.html | pip install torch torchvision | pip install torch==1.6.0+cpu torchvision==0.7.0+cpu -f https://download.pytorch.org/whl/torch_stable.html |
"stable,conda,linux,cuda9.2,python":
"conda install pytorch torchvision cudatoolkit=9.2 -c pytorch",
"stable,conda,linux,cuda10.1,python":
"conda install pytorch torchvision cudatoolkit=10.1 -c pytorch",
"stable,conda,linux,cuda10.2,python":
"conda install pytorch torchvision cudatoolkit=10.2 -c pytorch",
"stable,conda,linux,cudanone,python":
"conda install pytorch torchvision cpuonly -c pytorch",
"stable,conda,macos,cuda9.2,python":
"conda install pytorch torchvision -c pytorch
# MacOS Binaries dont support CUDA, install from source if CUDA is needed",
"stable,conda,macos,cuda10.1,python":
"conda install pytorch torchvision -c pytorch
# MacOS Binaries dont support CUDA, install from source if CUDA is needed",
"stable,conda,macos,cuda10.2,python":
"conda install pytorch torchvision -c pytorch
# MacOS Binaries dont support CUDA, install from source if CUDA is needed",
"stable,conda,macos,cudanone,python":
"conda install pytorch torchvision -c pytorch",
"stable,conda,windows,cuda10.1,python":
"conda install pytorch torchvision cudatoolkit=10.1 -c pytorch",
"stable,conda,windows,cuda10.2,python":
"conda install pytorch torchvision cudatoolkit=10.2 -c pytorch",
"stable,conda,windows,cudanone,python":
"conda install pytorch torchvision cpuonly -c pytorch",
"stable,pip,macos,cuda9.2,python":
"pip install torch torchvision
# MacOS Binaries dont support CUDA, install from source if CUDA is needed",
"stable,pip,macos,cuda10.1,python":
"pip install torch torchvision
# MacOS Binaries dont support CUDA, install from source if CUDA is needed",
"stable,pip,macos,cuda10.2,python":
"pip install torch torchvision
# MacOS Binaries dont support CUDA, install from source if CUDA is needed",
"stable,pip,macos,cudanone,python": "pip install torch torchvision",
"stable,pip,linux,cudanone,python":
"pip install torch==1.6.0+cpu torchvision==0.7.0+cpu -f https://download.pytorch.org/whl/torch_stable.html",
"stable,pip,linux,cuda9.2,python":
"pip install torch==1.6.0+cu92 torchvision==0.7.0+cu92 -f https://download.pytorch.org/whl/torch_stable.html",
"stable,pip,linux,cuda10.1,python":
"pip install torch==1.6.0+cu101 torchvision==0.7.0+cu101 -f https://download.pytorch.org/whl/torch_stable.html",
"stable,pip,linux,cuda10.2,python":
"pip install torch torchvision",
"stable,pip,windows,cudanone,python":
"pip install torch==1.6.0+cpu torchvision==0.7.0+cpu -f https://download.pytorch.org/whl/torch_stable.html",
"stable,pip,windows,cuda10.1,python":
"pip install torch==1.6.0+cu101 torchvision==0.7.0+cu101 -f https://download.pytorch.org/whl/torch_stable.html",
"stable,pip,windows,cuda10.2,python":
"pip install torch===1.6.0 torchvision===0.7.0 -f https://download.pytorch.org/whl/torch_stable.html",
"stable,libtorch,linux,cudanone,cplusplus":
"Download here (Pre-cxx11 ABI):
https://download.pytorch.org/libtorch/cpu/libtorch-shared-with-deps-1.6.0%2Bcpu.zip
Download here (cxx11 ABI):
https://download.pytorch.org/libtorch/cpu/libtorch-cxx11-abi-shared-with-deps-1.6.0%2Bcpu.zip",
"stable,libtorch,linux,cuda9.2,cplusplus":
"Download here (Pre-cxx11 ABI):
https://download.pytorch.org/libtorch/cu92/libtorch-shared-with-deps-1.6.0%2Bcu92.zip
Download here (cxx11 ABI):
https://download.pytorch.org/libtorch/cu92/libtorch-cxx11-abi-shared-with-deps-1.6.0%2Bcu92.zip",
"stable,libtorch,linux,cuda10.1,cplusplus":
"Download here (Pre-cxx11 ABI):
https://download.pytorch.org/libtorch/cu101/libtorch-shared-with-deps-1.6.0%2Bcu101.zip
Download here (cxx11 ABI):
https://download.pytorch.org/libtorch/cu101/libtorch-cxx11-abi-shared-with-deps-1.6.0%2Bcu101.zip",
"stable,libtorch,linux,cuda10.2,cplusplus":
"Download here (Pre-cxx11 ABI):
https://download.pytorch.org/libtorch/cu102/libtorch-shared-with-deps-1.6.0.zip
Download here (cxx11 ABI):
https://download.pytorch.org/libtorch/cu102/libtorch-cxx11-abi-shared-with-deps-1.6.0.zip",
"stable,libtorch,macos,cudanone,cplusplus":
"MacOS binaries do not support Java. Support is only available for Linux. Download here for C++:
https://download.pytorch.org/libtorch/cpu/libtorch-macos-1.6.0.zip ",
"stable,libtorch,macos,cuda9.2,cplusplus":
"MacOS binaries do not support Java. Support is only available for Linux. MacOS binaries do not support CUDA. Download CPU libtorch here for C++:
https://download.pytorch.org/libtorch/cpu/libtorch-macos-1.6.0.zip ",
"stable,libtorch,macos,cuda10.1,cplusplus":
"MacOS binaries do not support Java. Support is only available for Linux. MacOS binaries do not support CUDA. Download CPU libtorch here for C++:
https://download.pytorch.org/libtorch/cpu/libtorch-macos-1.6.0.zip ",
"stable,libtorch,macos,cuda10.2,cplusplus":
"MacOS binaries do not support Java. Support is only available for Linux. MacOS binaries do not support CUDA. Download CPU libtorch here for C++:
https://download.pytorch.org/libtorch/cpu/libtorch-macos-1.6.0.zip ",
"stable,libtorch,windows,cudanone,cplusplus":
"Windows binaries do not support Java. Support is only available for Linux. Download here for C++ (Release version):
https://download.pytorch.org/libtorch/cpu/libtorch-win-shared-with-deps-1.6.0%2Bcpu.zip
Download here for C++ (Debug version):
https://download.pytorch.org/libtorch/cpu/libtorch-win-shared-with-deps-debug-1.6.0%2Bcpu.zip",
"stable,libtorch,windows,cuda10.1,cplusplus":
"Windows binaries do not support Java. Support is only available for Linux. Download here for C++ (Release version):
https://download.pytorch.org/libtorch/cu101/libtorch-win-shared-with-deps-1.6.0%2Bcu101.zip
Download here for C++ (Debug version):
https://download.pytorch.org/libtorch/cu101/libtorch-win-shared-with-deps-debug-1.6.0%2Bcu101.zip",
"stable,libtorch,windows,cuda10.2,cplusplus":
"Windows binaries do not support Java. Support is only available for Linux. Download here for C++ (Release version):
https://download.pytorch.org/libtorch/cu102/libtorch-win-shared-with-deps-1.6.0.zip
Download here for C++ (Debug version):
https://download.pytorch.org/libtorch/cu102/libtorch-win-shared-with-deps-debug-1.6.0.zip",
"preview,conda,linux,cuda9.2,python":
"conda install pytorch torchvision cudatoolkit=9.2 -c pytorch-nightly",
"preview,conda,linux,cuda10.1,python":
"conda install pytorch torchvision cudatoolkit=10.1 -c pytorch-nightly",
"preview,conda,linux,cuda10.2,python":
"conda install pytorch torchvision cudatoolkit=10.2 -c pytorch-nightly",
"preview,conda,linux,cudanone,python":
"conda install pytorch torchvision cpuonly -c pytorch-nightly",
"preview,conda,macos,cuda9.2,python":
"conda install pytorch torchvision -c pytorch-nightly",
"preview,conda,macos,cuda10.1,python":
"conda install pytorch torchvision -c pytorch-nightly",
"preview,conda,macos,cuda10.2,python":
"conda install pytorch torchvision -c pytorch-nightly",
"preview,conda,macos,cudanone,python":
"conda install pytorch torchvision -c pytorch-nightly",
"preview,conda,windows,cuda9.2,python":
"conda install pytorch torchvision cudatoolkit=9.2 -c pytorch-nightly -c defaults -c numba/label/dev",
"preview,conda,windows,cuda10.1,python":
"conda install pytorch torchvision cudatoolkit=10.1 -c pytorch-nightly",
"preview,conda,windows,cuda10.2,python":
"conda install pytorch torchvision cudatoolkit=10.2 -c pytorch-nightly",
"preview,conda,windows,cudanone,python":
"conda install pytorch torchvision cpuonly -c pytorch-nightly",
"preview,pip,macos,cuda9.2,python":
"pip install numpy
pip install --pre torch torchvision -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html
# On MacOS, we provide CPU-only packages, CUDA functionality is not provided",
"preview,pip,macos,cuda10.1,python":
"pip install numpy
pip install --pre torch torchvision -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html
# On MacOS, we provide CPU-only packages, CUDA functionality is not provided",
"preview,pip,macos,cuda10.2,python":
"pip install numpy
pip install --pre torch torchvision -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html
# On MacOS, we provide CPU-only packages, CUDA functionality is not provided",
"preview,pip,macos,cudanone,python":
"pip install numpy
pip install --pre torch torchvision -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html",
"preview,pip,linux,cudanone,python":
"pip install numpy
pip install --pre torch torchvision -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html",
"preview,pip,linux,cuda9.2,python":
"pip install numpy
pip install --pre torch torchvision -f https://download.pytorch.org/whl/nightly/cu92/torch_nightly.html",
"preview,pip,linux,cuda10.1,python":
"pip install numpy
pip install --pre torch torchvision -f https://download.pytorch.org/whl/nightly/cu101/torch_nightly.html",
"preview,pip,linux,cuda10.2,python":
"pip install numpy
pip install --pre torch torchvision -f https://download.pytorch.org/whl/nightly/cu102/torch_nightly.html",
"preview,pip,windows,cudanone,python":
"pip install numpy
pip install --pre torch torchvision -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html",
"preview,pip,windows,cuda9.2,python":
"pip install numpy
pip install --pre torch torchvision -f https://download.pytorch.org/whl/nightly/cu92/torch_nightly.html",
"preview,pip,windows,cuda10.1,python":
"pip install numpy
pip install --pre torch torchvision -f https://download.pytorch.org/whl/nightly/cu101/torch_nightly.html",
"preview,pip,windows,cuda10.2,python":
"pip install numpy
pip install --pre torch torchvision -f https://download.pytorch.org/whl/nightly/cu102/torch_nightly.html",
"preview,libtorch,linux,cudanone,cplusplus":
"Download here (Pre-cxx11 ABI):
https://download.pytorch.org/libtorch/nightly/cpu/libtorch-shared-with-deps-latest.zip
Download here (cxx11 ABI):
https://download.pytorch.org/libtorch/nightly/cpu/libtorch-cxx11-abi-shared-with-deps-latest.zip",
"preview,libtorch,linux,cuda9.2,cplusplus":
"Download here (Pre-cxx11 ABI):
https://download.pytorch.org/libtorch/nightly/cu92/libtorch-shared-with-deps-latest.zip
Download here (cxx11 ABI):
https://download.pytorch.org/libtorch/nightly/cu92/libtorch-cxx11-abi-shared-with-deps-latest.zip",
"preview,libtorch,linux,cuda10.1,cplusplus":
"Download here (Pre-cxx11 ABI):
https://download.pytorch.org/libtorch/nightly/cu101/libtorch-shared-with-deps-latest.zip
Download here (cxx11 ABI):
https://download.pytorch.org/libtorch/nightly/cu101/libtorch-cxx11-abi-shared-with-deps-latest.zip",
"preview,libtorch,linux,cuda10.2,cplusplus":
"Download here (Pre-cxx11 ABI):
https://download.pytorch.org/libtorch/nightly/cu102/libtorch-shared-with-deps-latest.zip
Download here (cxx11 ABI):
https://download.pytorch.org/libtorch/nightly/cu102/libtorch-cxx11-abi-shared-with-deps-latest.zip",
"preview,libtorch,macos,cudanone,cplusplus":
"MacOS binaries do not support Java. Support is only available for Linux. Download here for C++:
https://download.pytorch.org/libtorch/nightly/cpu/libtorch-macos-latest.zip ",
"preview,libtorch,macos,cuda9.2,cplusplus":
"MacOS binaries do not support Java. Support is only available for Linux. MacOS binaries do not support CUDA. Download CPU libtorch here for C++:
https://download.pytorch.org/libtorch/nightly/cpu/libtorch-macos-latest.zip ",
"preview,libtorch,macos,cuda10.1,cplusplus":
"MacOS binaries do not support Java. Support is only available for Linux. MacOS binaries do not support CUDA. Download CPU libtorch here for C++:
https://download.pytorch.org/libtorch/nightly/cpu/libtorch-macos-latest.zip ",
"preview,libtorch,macos,cuda10.2,cplusplus":
"MacOS binaries do not support Java. Support is only available for Linux. MacOS binaries do not support CUDA. Download CPU libtorch here for C++:
https://download.pytorch.org/libtorch/nightly/cpu/libtorch-macos-latest.zip ",
"preview,libtorch,windows,cudanone,cplusplus":
"Windows binaries do not support Java. Support is only available for Linux. Download here for C++ (Release version):
https://download.pytorch.org/libtorch/nightly/cpu/libtorch-win-shared-with-deps-latest.zip
Download here for C++ (Debug version):
https://download.pytorch.org/libtorch/nightly/cpu/libtorch-win-shared-with-deps-debug-latest.zip",
"preview,libtorch,windows,cuda9.2,cplusplus":
"Windows binaries do not support Java. Support is only available for Linux. Download here for C++ (Release version):
https://download.pytorch.org/libtorch/nightly/cu92/libtorch-win-shared-with-deps-latest.zip
Download here for C++ (Debug version):
https://download.pytorch.org/libtorch/nightly/cu92/libtorch-win-shared-with-deps-debug-latest.zip",
"preview,libtorch,windows,cuda10.1,cplusplus":
"Windows binaries do not support Java. Support is only available for Linux. Download here for C++ (Release version):
https://download.pytorch.org/libtorch/nightly/cu101/libtorch-win-shared-with-deps-latest.zip
Download here for C++ (Debug version):
https://download.pytorch.org/libtorch/nightly/cu101/libtorch-win-shared-with-deps-debug-latest.zip",
"preview,libtorch,windows,cuda10.2,cplusplus":
"Windows binaries do not support Java. Support is only available for Linux. Download here for C++ (Release version):
https://download.pytorch.org/libtorch/nightly/cu102/libtorch-win-shared-with-deps-latest.zip
Download here for C++ (Debug version):
https://download.pytorch.org/libtorch/nightly/cu102/libtorch-win-shared-with-deps-debug-latest.zip",