PyTorch(torch)下载 - 详解

已有cuda版本,PyTorch 一分为三:torch、torchvision 与 torchaudio

方法一:

在网站中找到自己所必须的版本,直接下载

官方网站:https://pytorch.org/get-started/previous-versions/

方法二:

依次下载torch、torchvision、torchaudio 的.whl

网站:https://download.pytorch.org/whl

网站(整合):https://download.pytorch.org/whl/torch_stable.html

二选一下载即可

PS:若找不到 按ctrl+F 查找

在虚拟环境中安装不在base下)

安装命令 :路径/文件名

如存放在D盘的th文件夹中 则安装命令为

pip install D:\th\torch-1.9.0+cu111-cp39-cp39-win_amd64.whl

pip install D:\th\torchvision-0.10.0+cu111-cp39-cp39-win_amd64.whl

pip install D:\th\torchaudio-0.9.0-cp39-cp39-win_amd64.whl

附:PyTorch 版本与对应关系

PyTorch 版本

torchvision 版本

CUDA 版本

2.1.0

0.16.0

11.8、12.1

2.0.1

0.15.2

11.8、12.1

2.0.0

0.15.1

11.8、12.1

1.13.1

0.14.1

11.6、11.7、CPU

1.13.0

0.14.0

11.6、11.7、CPU

1.12.1

0.13.1

11.3、11.6、CPU

1.12.0

0.13.0

11.3、11.6、CPU

1.11.0

0.12.0

11.3、CPU

1.10.2

0.11.3

11.3、CPU

1.10.1

0.11.2

11.3、CPU

1.10.0

0.11.1

11.3、CPU

1.9.1

0.10.1

11.1、CPU

1.9.0

0.10.0

11.1、CPU

1.8.2

0.9.1

11.1、10.2、CPU

1.8.1

0.9.1

11.1、10.2、CPU

1.8.0

0.9.0

11.1、10.2、CPU

1.7.1

0.8.2

11.0、10.2、CPU

1.7.0

0.8.1

11.0、10.2、CPU

1.6.0

0.7.0

10.2、CPU

1.5.1

0.6.1

10.1、CPU

1.5.0

0.6.0

10.1、CPU

1.4.0

0.5.0

10.0、CPU

1.3.1

0.4.2

10.0、CPU

1.3.0

0.4.1

10.0、CPU

1.2.0

0.4.0

10.0、CPU

1.1.0

0.3.0

9.2、CPU

1.0.1.post2

0.2.2

9.0、CPU

1.0.0

0.2.1

9.0、CPU

0.4.1

无对应版本

9.0、8.0、CPU

0.4.0

无对应版本

9.0、8.0、CPU

posted @ 2025-09-24 16:27  yxysuanfa  阅读(486)  评论(0)    收藏  举报