赞
踩
pip install torchtext
安装 torchtext可能会使得默认安装最新的版本,同时会安装对应版本的pytorch的CPU版本。import torch
print(torch.__version__)
查看),以及本地的Python解释器版本(使用
import sys
print(sys.version)
查看),然后根据https://github.com/pytorch/text/#installation的表格来查找对应的torchtext版本。(具体参考https://blog.csdn.net/PolarisRisingWar/article/details/123736491)
PyTorch version | torchtext version | Supported Python versio |
---|---|---|
nightly build | main | >=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.2 (LTS) | 0.9.2 (LTS) | >=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 |
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。