pip命令行安装pytorch GPU版本

  1. Package download link-> Previous PyTorch Versions | PyTorch
    a) pip install torch1.7.1+cu101 torchvision0.8.2+cu101 torchaudio==0.7.2 -f
    https://download.pytorch.org/whl/torch_stable.html

在这里插入图片描述
b) Window+R->copy ”

pip install torch==1.7.1+cu101 torchvision==0.8.2+cu101 
torchaudio==0.7.2 -f https://download.pytorch.org/whl/torch_stable.html

” It will automatically install pytorch like below:

pip install torch==1.7.0+cu101 torchvision==0.8.0+cu101 torchaudio==0.7.0 -f https://download.pytorch.org/whl/torch_stable.html

猜你喜欢

转载自blog.csdn.net/thequitesunshine007/article/details/118668749