Pytorch安装
配置pip源
#pip
mkdir ~/.pip
cd ~/.pip
vim pip.conf
[global]
index-url=https://mirrors.shanhe.com/simple
trusted-host = mirrors.shanhe.com
:wq
pip安装
#安装最新版
pip3 install torch torchvision torchaudio
#2.5.1
pip install torch==2.5.1 torchvision==0.20.1 torchaudio==2.5.1
#2.5.0
pip install torch==2.5.0 torchvision==0.20.0 torchaudio==2.5.0
#2.4.1
pip install torch==2.4.1 torchvision==0.19.1 torchaudio==2.4.1
#2.4.0
pip install torch==2.4.0 torchvision==0.19.0 torchaudio==2.4.0
#2.3.1
pip install torch==2.3.1 torchvision==0.18.1 torchaudio==2.3.1
#2.3.0
pip install torch==2.3.0 torchvision==0.18.0 torchaudio==2.3.0
#2.2.2
pip install torch==2.2.2 torchvision==0.17.2 torchaudio==2.2.2
#2.2.1
pip install torch==2.2.1 torchvision==0.17.1 torchaudio==2.2.1
#2.2.0
pip install torch==2.2.0 torchvision==0.17.0 torchaudio==2.2.0
#2.1.2
pip install torch==2.1.2 torchvision==0.16.2 torchaudio==2.1.2
#2.1.1
pip install torch==2.1.1 torchvision==0.16.1 torchaudio==2.1.1
#2.1.0
pip install torch==2.1.0 torchvision==0.16.0 torchaudio==2.1.0
#2.0.1
pip install torch==2.0.1 torchvision==0.15.2 torchaudio==2.0.2
#2.0.0
pip install torch==2.0.0 torchvision==0.15.1 torchaudio==2.0.1
作者:admin 创建时间:2025-04-03 09:32
最后编辑:admin 更新时间:2025-04-03 10:17
最后编辑:admin 更新时间:2025-04-03 10:17