WebUI installation failed, help me please. #10992
Closed
mousegame168
started this conversation in
General
Replies: 1 comment
-
I finally solved it. The pip source assigned to me could not be connected for unknown reasons. To reset pip source in CMD: then upgrade pip: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Yesterday, I suddenly couldn’t open and use webui, so I deleted venv hoping it would redownload the required content. However, I started encountering problems with installation. I searched many methods on the Internet but none of them worked. Even if I re-executed git clone to completely reinstall it, it was still the same. I am sure that my network can connect to git. I have also installed Python3.10.11+Git-2.41+cuda11.8. I hope someone can help me. Thank you very much.
Installing gfpgan
Traceback (most recent call last):
File "Z:\stable-diffusion-webui\launch.py", line 38, in
main()
File "Z:\stable-diffusion-webui\launch.py", line 29, in main
prepare_environment()
File "Z:\stable-diffusion-webui\modules\launch_utils.py", line 263, in prepare_environment
run_pip(f"install {gfpgan_package}", "gfpgan")
File "Z:\stable-diffusion-webui\modules\launch_utils.py", line 124, in run_pip
return run(f'"{python}" -m pip {command} --prefer-binary{index_url_line}', desc=f"Installing {desc}", errdesc=f"Couldn't install {desc}", live=live)
File "Z:\stable-diffusion-webui\modules\launch_utils.py", line 101, in run
raise RuntimeError("\n".join(error_bits))
RuntimeError: Couldn't install gfpgan.
Command: "Z:\stable-diffusion-webui\venv\Scripts\python.exe" -m pip install https://github.com/TencentARC/GFPGAN/archive/8d2447a2d918f8eba5a4a01463fd48e45126a379.zip --prefer-binary
Error code: 1
stdout: Looking in indexes: https://pypi.org/
Collecting https://github.com/TencentARC/GFPGAN/archive/8d2447a2d918f8eba5a4a01463fd48e45126a379.zip
Using cached https://github.com/TencentARC/GFPGAN/archive/8d2447a2d918f8eba5a4a01463fd48e45126a379.zip (6.0 MB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'error'
stderr: error: subprocess-exited-with-error
python setup.py egg_info did not run successfully.
exit code: 1
[36 lines of output]
Z:\stable-diffusion-webui\venv\lib\site-packages\setuptools\installer.py:27: SetuptoolsDeprecationWarning: setuptools.installer is deprecated. Requirements should be satisfied by a PEP 517 installer.
warnings.warn(
WARNING: The wheel package is not available.
ERROR: Could not find a version that satisfies the requirement cython (from versions: none)
ERROR: No matching distribution found for cython
Traceback (most recent call last):
File "Z:\stable-diffusion-webui\venv\lib\site-packages\setuptools\installer.py", line 82, in fetch_build_egg
subprocess.check_call(cmd)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 369, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['Z:\stable-diffusion-webui\venv\Scripts\python.exe', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', 'C:\Users\ADMINI~1\AppData\Local\Temp\tmp0w_p1wu9', '--quiet', 'cython']' returned non-zero exit status 1.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "C:\Users\Administrator\AppData\Local\Temp\pip-req-build-nmbj3u1u\setup.py", line 84, in
setup(
File "Z:\stable-diffusion-webui\venv\lib\site-packages\setuptools_init_.py", line 86, in setup
install_setup_requires(attrs)
File "Z:\stable-diffusion-webui\venv\lib\site-packages\setuptools_init.py", line 80, in install_setup_requires
dist.fetch_build_eggs(dist.setup_requires)
File "Z:\stable-diffusion-webui\venv\lib\site-packages\setuptools\dist.py", line 875, in fetch_build_eggs
resolved_dists = pkg_resources.working_set.resolve(
File "Z:\stable-diffusion-webui\venv\lib\site-packages\pkg_resources_init.py", line 789, in resolve
dist = best[req.key] = env.best_match(
File "Z:\stable-diffusion-webui\venv\lib\site-packages\pkg_resources_init_.py", line 1075, in best_match
return self.obtain(req, installer)
File "Z:\stable-diffusion-webui\venv\lib\site-packages\pkg_resources_init_.py", line 1087, in obtain
return installer(requirement)
File "Z:\stable-diffusion-webui\venv\lib\site-packages\setuptools\dist.py", line 945, in fetch_build_egg
return fetch_build_egg(self, req)
File "Z:\stable-diffusion-webui\venv\lib\site-packages\setuptools\installer.py", line 84, in fetch_build_egg
raise DistutilsError(str(e)) from e
distutils.errors.DistutilsError: Command '['Z:\stable-diffusion-webui\venv\Scripts\python.exe', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', 'C:\Users\ADMINI~1\AppData\Local\Temp\tmp0w_p1wu9', '--quiet', 'cython']' returned non-zero exit status 1.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
Encountered error while generating package metadata.
See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
[notice] A new release of pip is available: 23.0.1 -> 23.1.2
[notice] To update, run: Z:\stable-diffusion-webui\venv\Scripts\python.exe -m pip install --upgrade pip
Beta Was this translation helpful? Give feedback.
All reactions