我正试图在我的个人电脑(Windows11 Pro x64)上本地安装和配置稳定的扩散人工智能,下面是关于如何对Geek的文章如何在Windows上用GUI在本地运行稳定扩散。
很自然,我遇到了一些问题,主要是(如下面的代码所示,Torch安装和Pip版本:)
这就是我运行稳定的扩散批处理文件时得到的结果:
venv "D:\stable-diffusion-webui-master\venv\Scripts\Python.exe"
Python 3.6.1 (v3.6.1:69c0db5, Mar 21 2017, 18:41:36) [MSC v.1900 64 bit (AMD64)]
Commit hash: <none>
Installing torch and torchvision
Traceback (most recent call last):
File "launch.py", line 108, in <module>
run(f'"{python}" -m {torch_command}', "Installing torch and torchvision", "Couldn't install torch")
File "launch.py", line 55, in run
raise RuntimeError(message)
RuntimeError: Couldn't install torch.
Command: "D:\stable-diffusion-webui-master\venv\Scripts\python.exe" -m pip install torch==1.12.1+cu113 torchvision==0.13.1+cu113 --extra-index-url https://download.pytorch.org/whl/cu113
Error code: 1
stdout: Collecting torch==1.12.1+cu113
stderr: Cache entry deserialization failed, entry ignored
Could not find a version that satisfies the requirement torch==1.12.1+cu113 (from versions: 1.7.0, 1.10.0+cu113, 1.10.1+cu113, 1.10.2+cu113)
No matching distribution found for torch==1.12.1+cu113
You are using pip version 9.0.1, however version 22.2.2 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
甚至在我尝试了以下几项之后:
也许值得注意的是,虽然我将程序安装到我的D:驱动器上,但我的C:驱动器上已经安装了python6.1(64位)。
我是一名前技术人员(现为作者),试图在我的电脑上安装一个图像生成器,以制作一本书的封面。它可能不起作用,但如果我不能让它运行,那么任何帮助都肯定无法实现:)
詹姆斯
https://stackoverflow.com/questions/73817772
复制相似问题