pip install torch慢

在Pytorch官网找到安装命令,然后在安装命令中间加上  --trusted-host http://pypi.tuna.tsinghua.edu.cn   这句就可以了,如下:

pip --trusted-host pypi.tuna.tsinghua.edu.cn install torch==1.11.0+cu102 torchvision==0.12.0+cu102 torchaudio==0.11.0 --extra-index-url https://download.pytorch.org/whl/cu102

参考:

1.通过清华源使用pip下载pytorch - 知乎

你可能感兴趣的:(python,深度学习,pytorch)