ошибка при установке gfpgan. установлен питон 10.6

Пытаюсь установить стабильную диффузию. эта ошибка возникает после завершения установки факела.

обязательно добавил python в PATH

удалил папку venv.

несколько раз переустанавливал python 10.6

не знаю, как поступить.

Извините за плохое форматирование кода

'''

      Installing gfpgan
Traceback (most recent call last):
File "C:\Users\B\Downloads\ai\stable-diffusion-webui\launch.py", line 294, in <module>
prepare_environment()
File "C:\Users\B\Downloads\ai\stable-diffusion-webui\launch.py", line 212, in 
prepare_environment
run_pip(f"install {gfpgan_package}", "gfpgan")
File "C:\Users\B\Downloads\ai\stable-diffusion-webui\launch.py", line 78, in run_pip
return run(f'"{python}" -m pip {args} --prefer-binary{index_url_line}', desc=f"Installing 
{desc}", errdesc=f"Couldn't install {desc}")
File "C:\Users\B\Downloads\ai\stable-diffusion-webui\launch.py", line 49, in run
raise RuntimeError(message)
RuntimeError: Couldn't install gfpgan.
Command: "C:\Users\B\Downloads\ai\stable-diffusion-webui\venv\Scripts\python.exe" -m pip 
install git+https://github.com/TencentARC/GFPGAN.git@8d2447a2d918f8eba5a4a01463fd48e45126a379 
--prefer-binary
Error code: 1
stdout: Collecting 
git+https://github.com/TencentARC/GFPGAN.git@8d2447a2d918f8eba5a4a01463fd48e45126a379
Cloning https://github.com/TencentARC/GFPGAN.git (to revision 
8d2447a2d918f8eba5a4a01463fd48e45126a379) to c:\users\b\appdata\local\temp\pip-req-build- 
rnu9_mu9

stderr:   Running command git clone --filter=blob:none --quiet 
https://github.com/TencentARC/GFPGAN.git 'C:\Users\B\AppData\Local\Temp\pip-req-build- 
rnu9_mu9'
fatal: expected 'packfile'
error: subprocess-exited-with-error

git clone --filter=blob:none --quiet https://github.com/TencentARC/GFPGAN.git 
'C:\Users\B\AppData\Local\Temp\pip-req-build-rnu9_mu9' did not run successfully.
exit code: 128

See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

git clone --filter=blob:none --quiet https://github.com/TencentARC/GFPGAN.git 
'C:\Users\B\AppData\Local\Temp\pip-req-build-rnu9_mu9' did not run successfully.
exit code: 128

See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

[notice] A new release of pip available: 22.2.1 -> 22.3.1
[notice] To update, run: C:\Users\B\Downloads\ai\stable-diffusion- 
webui\venv\Scripts\python.exe -m pip install --upgrade pip

'''

3 ответа

Возможно, вы устанавливаете пакет в среде venv. Я открываю терминал в vscode иpip install gfpganв терминале venv, и это удалось.

Вы можете установить gfpgan вручную.

Запустите эту команду из вашего установочного каталога

"\stable-diffusion-webui\venv\Scripts\python.exe" -m pip install https://github.com/TencentARC/GFPGAN/archive/8d2447a2d918f8eba5a4a01463fd48e45126a379.zip --prefer-binary

Если в вашей сети проблемы, вы можете сначала скачать GFPGAN.zip, а затем запустить его в venv.

      python.exe -m pip install "your path\GFPGAN-8d2447a2d918f8eba5a4a01463fd48e45126a379.zip" --prefer-binary
Другие вопросы по тегам