一、现象
在服务器执行以下语句
wget https://download.pytorch.org/whl/cu118/torch-2.0.1%2Bcu118-cp310-cp310-linux_x86_64.whl
报的错误如下:
--2024-06-16 17:01:40-- https://download.pytorch.org/whl/cu118/torch-2.0.1%2Bcu118-cp310-cp310-linux_x86_64.whl
Resolving download.pytorch.org (download.pytorch.org)... 13.227.74.25, 13.227.74.43, 13.227.74.24, ...
Connecting to download.pytorch.org (download.pytorch.org)|13.227.74.25|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2267321259 (2.1G) [binary/octet-stream]
Saving to: ‘torch-2.0.1+cu118-cp310-cp310-linux_x86_64.whl.3’
torch-2.0.1+cu118-cp310-cp310-linux_x86_64.whl.3 0%[ ] 0 --.-KB/s in 0s
Cannot write to ‘torch-2.0.1+cu118-cp310-cp310-linux_x86_64.whl.3’ (成功).
二、解决方案
在谷歌浏览器网址输入以下网址并回车
https://download.pytorch.org/whl/cu118/torch-2.0.1%2Bcu118-cp310-cp310-linux_x86_64.whl
开始下载情况如下
最后下载情况,显示"失败 - 网络错误"
最后还是不行的话,打开工具,使用学术加速方式下载下来
解决方案:带疑问,多交流,勤动手,频思考