手动下载pytorch并将下载的路径提供给anaconda

manually download pytorch and feed downloaded path to anaconda

我试过conda install pytorch ... 但它甚至没有启动并给了我

("Connection broken: ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None)", ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None))

我正在考虑手动下载必要的文件(即使网速很慢也能安全下载)然后将其设置为 anaconda 以便直接从下载的文件安装而不是自行下载

这可以通过为 torch、torchvision 和 torchaudio 等下载 pip wheels 并为本地 wheels 进行 pip 安装来完成。可以从 here 下载合适的 Pytorch wheels。现在,您可以简单地 pip 安装下载的 whl 个文件:

pip install file.whl

这里file.whl是下载的轮子