Could not find a version that satisfies the requirement torch==1.13.1+cu117 (from versions: none)

程序安装过程中,出现了需要安装两个包:

Installing torch and torchvision

但是安装过程中,竟然报错了:

ERROR: Could not find a version that satisfies the requirement torch==1.13.1+cu117 (from versions: none)
ERROR: No matching distribution found for torch==1.13.1+cu117

Could not find a version that satisfies the requirement torch==1.13.1+cu117 (from versions: none)_第1张图片

看到界面提示,需要到这个链接里去找:

https://download.pytorch.org/whl/cu117

Could not find a version that satisfies the requirement torch==1.13.1+cu117 (from versions: none)_第2张图片

但是找了一番,没有找到。

搜索了很多帖子,终于找到这个帖子:

[Bug]: ERROR: Could not find a version that satisfies the requirement torch==1.13.1+cu117 · Issue #7166 · AUTOMATIC1111/stable-diffusion-webui · GitHub   https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/7166

帖子里有人贴了一个链接出来,跟上面的目录一样。

抱着试试看的心态粘贴到浏览器里面下载试试,竟然开始下载了。

我再次尝试到目录里面搜索,原来是在非常下面的位置:

Could not find a version that satisfies the requirement torch==1.13.1+cu117 (from versions: none)_第3张图片

直接下载的链接是:

http://download.pytorch.org/whl/cu117/torch-1.13.1%2Bcu117-cp310-cp310-win_amd64.whl

整个包有2.1GB, 下载需要等待一段时间。

你可能感兴趣的:(深度学习,人工智能)