PyTorch、TorchVision、TorchAudio、TorchData、TorchText 和 Python 的版本对应关系 (兼容性)
2026/8/16 19:36:19 网站建设 项目流程

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/nightlymain/nightly>=3.10,<=3.14
2.130.28>=3.10,<=3.14
2.120.27>=3.10,<=3.14
2.110.26>=3.10,<=3.14
2.100.25>=3.10,<=3.14
2.90.24>=3.10,<=3.14
2.80.23>=3.9,<=3.13
2.70.22>=3.9,<=3.13
2.60.21>=3.9,<=3.12
2.50.20>=3.9,<=3.12
2.40.19>=3.8,<=3.12
2.30.18>=3.8,<=3.12
2.20.17>=3.8,<=3.11
2.10.16>=3.8,<=3.11
2.00.15>=3.8,<=3.11
1.130.14>=3.7.2,<=3.10
1.120.13>=3.7,<=3.10
1.110.12>=3.7,<=3.10
1.100.11>=3.6,<=3.9
1.90.10>=3.6,<=3.9
1.80.9>=3.6,<=3.9
1.70.8>=3.6,<=3.9
1.60.7>=3.6,<=3.8
1.50.6>=3.5,<=3.8
1.40.5==2.7,>=3.5,<=3.8
1.30.4.2/0.4.3==2.7,>=3.5,<=3.7
1.20.4.1==2.7,>=3.5,<=3.7
1.10.3==2.7,>=3.5,<=3.7
<=1.00.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 above2.11.0>=3.10,<=3.14
2.102.10.0>=3.10,<=3.14
2.9.12.9.1>=3.10,<=3.14
2.92.9.0>=3.10,<=3.14
2.82.8.0>=3.9,<=3.13
2.7.12.7.1>=3.9,<=3.13
2.72.7.0>=3.9,<=3.13
2.62.6.0>=3.9,<=3.13
2.52.5.0>=3.8,<=3.11
2.4.12.4.1>=3.8,<=3.11
2.42.4.0>=3.8,<=3.11
2.3.12.3.1>=3.8,<=3.11
2.3.02.3.0>=3.8,<=3.11
2.2.22.2.2>=3.8,<=3.11
2.2.12.2.1>=3.8,<=3.11
2.22.2.0>=3.8,<=3.11
2.1.22.1.2>=3.8,<=3.11
2.1.12.1.1>=3.8,<=3.11
2.1.02.1.0>=3.8,<=3.11
2.0.12.0.2>=3.8,<=3.11
2.0.02.0.1>=3.8,<=3.11
1.13.10.13.1>=3.7,<=3.10
1.13.00.13.0>=3.7,<=3.10
1.12.10.12.1>=3.7,<=3.10
1.12.00.12.0>=3.7,<=3.10
1.11.00.11.0>=3.7,<=3.9
1.10.00.10.0>=3.6,<=3.9
1.9.10.9.1>=3.6,<=3.9
1.8.10.8.1>=3.6,<=3.9
1.7.10.7.2>=3.6,<=3.9
1.7.00.7.0>=3.6,<=3.8
1.6.00.6.0>=3.6,<=3.8
1.5.00.5.0>=3.5,<=3.8
1.4.00.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/nightlymain/nightly>=3.9,<=3.13
2.6.00.11.0>=3.9,<=3.13
2.5.00.10.0>=3.9,<=3.12
2.5.00.9.0>=3.9,<=3.12
2.4.00.8.0>=3.8,<=3.12
2.0.00.6.0>=3.8,<=3.11
1.13.10.5.1>=3.7,<=3.10
1.12.10.4.1>=3.7,<=3.10
1.12.00.4.0>=3.7,<=3.10
1.11.00.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 buildmain>=3.8, <=3.11
2.3.00.18.0>=3.8, <=3.11
2.2.00.17.0>=3.8, <=3.11
2.1.00.16.0>=3.8, <=3.11
2.0.00.15.0>=3.8, <=3.11
1.13.00.14.0>=3.7, <=3.10
1.12.00.13.0>=3.7, <=3.10
1.11.00.12.0>=3.6, <=3.9
1.10.00.11.0>=3.6, <=3.9
1.9.10.10.1>=3.6, <=3.9
1.90.10>=3.6, <=3.9
1.8.10.9.1>=3.6, <=3.9
1.80.9>=3.6, <=3.9
1.7.10.8.1>=3.6, <=3.9
1.70.8>=3.6, <=3.8
1.60.7>=3.6, <=3.8
1.50.6>=3.5, <=3.8
1.40.52.7, >=3.5, <=3.8
0.4 and below0.2.32.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

需要专业的网站建设服务?

联系我们获取免费的网站建设咨询和方案报价,让我们帮助您实现业务目标

立即咨询