PyTorch、TorchVision、TorchAudio、TorchData、TorchText 和 Python 的版本对应关系 {兼容性}
- 1. `PyTorch (torch)`、`TorchVision (torchvision)` 和 Python 的版本对应关系 (兼容性)
- 2. `PyTorch (torch)`、`TorchAudio (torchaudio)` 和 Python 的版本对应关系 (兼容性)
- 3. `PyTorch (torch)`、`TorchData (torchdata)` 和 Python 的版本对应关系 (兼容性)
- 4. `PyTorch (torch)`、`TorchText (torchtext)` 和 Python 的版本对应关系 (兼容性)
- References
Installing previous versions of PyTorch
https://pytorch.org/get-started/previous-versions/
1.PyTorch (torch)、TorchVision (torchvision)和 Python 的版本对应关系 (兼容性)
torchvision
https://pypi.org/project/torchvision/
https://github.com/pytorch/vision
The following is the correspondingtorchvisionversions and supported Python versions.
PyTorch (torch) | TorchVision (torchvision) | Python |
|---|---|---|
main/nightly | main/nightly | >=3.10,<=3.14 |
2.13 | 0.28 | >=3.10,<=3.14 |
2.12 | 0.27 | >=3.10,<=3.14 |
2.11 | 0.26 | >=3.10,<=3.14 |
2.10 | 0.25 | >=3.10,<=3.14 |
2.9 | 0.24 | >=3.10,<=3.14 |
2.8 | 0.23 | >=3.9,<=3.13 |
2.7 | 0.22 | >=3.9,<=3.13 |
2.6 | 0.21 | >=3.9,<=3.12 |
2.5 | 0.20 | >=3.9,<=3.12 |
2.4 | 0.19 | >=3.8,<=3.12 |
2.3 | 0.18 | >=3.8,<=3.12 |
2.2 | 0.17 | >=3.8,<=3.11 |
2.1 | 0.16 | >=3.8,<=3.11 |
2.0 | 0.15 | >=3.8,<=3.11 |
1.13 | 0.14 | >=3.7.2,<=3.10 |
1.12 | 0.13 | >=3.7,<=3.10 |
1.11 | 0.12 | >=3.7,<=3.10 |
1.10 | 0.11 | >=3.6,<=3.9 |
1.9 | 0.10 | >=3.6,<=3.9 |
1.8 | 0.9 | >=3.6,<=3.9 |
1.7 | 0.8 | >=3.6,<=3.9 |
1.6 | 0.7 | >=3.6,<=3.8 |
1.5 | 0.6 | >=3.5,<=3.8 |
1.4 | 0.5 | ==2.7,>=3.5,<=3.8 |
1.3 | 0.4.2/0.4.3 | ==2.7,>=3.5,<=3.7 |
1.2 | 0.4.1 | ==2.7,>=3.5,<=3.7 |
1.1 | 0.3 | ==2.7,>=3.5,<=3.7 |
<=1.0 | 0.2 | ==2.7,>=3.5,<=3.7 |
2.PyTorch (torch)、TorchAudio (torchaudio)和 Python 的版本对应关系 (兼容性)
Compatibility Matrix
https://docs.pytorch.org/audio/main/installation.html
https://github.com/pytorch/audio
The official binary distributions of TorchAudio contain extension modules which are written in C++ and linked against specific versions of PyTorch.
TorchAudio 的官方二进制发行版包含用 C++ 编写的扩展模块,这些模块链接到特定版本的 PyTorch。
TorchAudio and PyTorch from different releases cannot be used together. Please refer to the following table for the matching versions.
不同版本的 TorchAudio 和 PyTorch 不能同时使用。请参考下表查看匹配的版本。
PyTorch (torch) | TorchAudio (torchaudio) | Python |
|---|---|---|
2.11and above | 2.11.0 | >=3.10,<=3.14 |
2.10 | 2.10.0 | >=3.10,<=3.14 |
2.9.1 | 2.9.1 | >=3.10,<=3.14 |
2.9 | 2.9.0 | >=3.10,<=3.14 |
2.8 | 2.8.0 | >=3.9,<=3.13 |
2.7.1 | 2.7.1 | >=3.9,<=3.13 |
2.7 | 2.7.0 | >=3.9,<=3.13 |
2.6 | 2.6.0 | >=3.9,<=3.13 |
2.5 | 2.5.0 | >=3.8,<=3.11 |
2.4.1 | 2.4.1 | >=3.8,<=3.11 |
2.4 | 2.4.0 | >=3.8,<=3.11 |
2.3.1 | 2.3.1 | >=3.8,<=3.11 |
2.3.0 | 2.3.0 | >=3.8,<=3.11 |
2.2.2 | 2.2.2 | >=3.8,<=3.11 |
2.2.1 | 2.2.1 | >=3.8,<=3.11 |
2.2 | 2.2.0 | >=3.8,<=3.11 |
2.1.2 | 2.1.2 | >=3.8,<=3.11 |
2.1.1 | 2.1.1 | >=3.8,<=3.11 |
2.1.0 | 2.1.0 | >=3.8,<=3.11 |
2.0.1 | 2.0.2 | >=3.8,<=3.11 |
2.0.0 | 2.0.1 | >=3.8,<=3.11 |
1.13.1 | 0.13.1 | >=3.7,<=3.10 |
1.13.0 | 0.13.0 | >=3.7,<=3.10 |
1.12.1 | 0.12.1 | >=3.7,<=3.10 |
1.12.0 | 0.12.0 | >=3.7,<=3.10 |
1.11.0 | 0.11.0 | >=3.7,<=3.9 |
1.10.0 | 0.10.0 | >=3.6,<=3.9 |
1.9.1 | 0.9.1 | >=3.6,<=3.9 |
1.8.1 | 0.8.1 | >=3.6,<=3.9 |
1.7.1 | 0.7.2 | >=3.6,<=3.9 |
1.7.0 | 0.7.0 | >=3.6,<=3.8 |
1.6.0 | 0.6.0 | >=3.6,<=3.8 |
1.5.0 | 0.5.0 | >=3.5,<=3.8 |
1.4.0 | 0.4.0 | ==2.7,>=3.5,<=3.8 |
3.PyTorch (torch)、TorchData (torchdata)和 Python 的版本对应关系 (兼容性)
Version Compatibility
https://github.com/meta-pytorch/data
The following is the correspondingtorchdataversions and supported Python versions.
PyTorch (torch) | TorchData (torchdata) | Python |
|---|---|---|
master/nightly | main/nightly | >=3.9,<=3.13 |
2.6.0 | 0.11.0 | >=3.9,<=3.13 |
2.5.0 | 0.10.0 | >=3.9,<=3.12 |
2.5.0 | 0.9.0 | >=3.9,<=3.12 |
2.4.0 | 0.8.0 | >=3.8,<=3.12 |
2.0.0 | 0.6.0 | >=3.8,<=3.11 |
1.13.1 | 0.5.1 | >=3.7,<=3.10 |
1.12.1 | 0.4.1 | >=3.7,<=3.10 |
1.12.0 | 0.4.0 | >=3.7,<=3.10 |
1.11.0 | 0.3.0 | >=3.7,<=3.10 |
4.PyTorch (torch)、TorchText (torchtext)和 Python 的版本对应关系 (兼容性)
Version Compatibility
https://github.com/pytorch/text
The following are the corresponding torchtext versions and supported Python versions.
PyTorch (torch) | TorchText (torchtext) | Python |
|---|---|---|
nightly build | main | >=3.8, <=3.11 |
2.3.0 | 0.18.0 | >=3.8, <=3.11 |
2.2.0 | 0.17.0 | >=3.8, <=3.11 |
2.1.0 | 0.16.0 | >=3.8, <=3.11 |
2.0.0 | 0.15.0 | >=3.8, <=3.11 |
1.13.0 | 0.14.0 | >=3.7, <=3.10 |
1.12.0 | 0.13.0 | >=3.7, <=3.10 |
1.11.0 | 0.12.0 | >=3.6, <=3.9 |
1.10.0 | 0.11.0 | >=3.6, <=3.9 |
1.9.1 | 0.10.1 | >=3.6, <=3.9 |
1.9 | 0.10 | >=3.6, <=3.9 |
1.8.1 | 0.9.1 | >=3.6, <=3.9 |
1.8 | 0.9 | >=3.6, <=3.9 |
1.7.1 | 0.8.1 | >=3.6, <=3.9 |
1.7 | 0.8 | >=3.6, <=3.8 |
1.6 | 0.7 | >=3.6, <=3.8 |
1.5 | 0.6 | >=3.5, <=3.8 |
1.4 | 0.5 | 2.7, >=3.5, <=3.8 |
0.4 and below | 0.2.3 | 2.7, >=3.5, <=3.8 |
References
[1] Yongqiang Cheng (程永强), https://yongqiang.blog.csdn.net/
[2] TorchVision (torchvision), https://github.com/pytorch/vision
[3] TorchAudio (torchaudio), https://github.com/pytorch/audio
[4] TorchData (torchdata), https://github.com/meta-pytorch/data
[5] TorchText (torchtext), https://github.com/pytorch/text
[6] PyTorch、TorchVision、TorchAudio、TorchData、TorchText 和 Python 的版本对应关系 (兼容性), https://mp.weixin.qq.com/s/d60Agr_7D1DQfWUGHkndnw