欢迎光临散文网 会员登陆 & 注册

最强 AI 绘画工具——Stable Diffusion超详细教程

2023-02-23 21:24 作者:也好蓝  | 我要投稿

venv "YEHAONAN\Scripts\Python.exe"

Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug 1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]

Commit hash: 0cc0ee1bcb4c24a8c9715f66cede06601bfc00c8

Installing gfpgan

Traceback (most recent call last):

 File "D:\AI\stable-diffusion-webui\launch.py", line 360, in <module>

  prepare_environment()

 File "D:\AI\stable-diffusion-webui\launch.py", line 275, in prepare_environment

  run_pip(f"install {gfpgan_package}", "gfpgan")

 File "D:\AI\stable-diffusion-webui\launch.py", line 137, 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 "D:\AI\stable-diffusion-webui\launch.py", line 105, in run

  raise RuntimeError(message)

RuntimeError: Couldn't install gfpgan.

Command: "D:\AI\stable-diffusion-webui\YEHAONAN\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\Ҷ\appdata\local\temp\pip-req-build-c_01q96r

 Resolved https://github.com/TencentARC/GFPGAN.git to commit 8d2447a2d918f8eba5a4a01463fd48e45126a379

 Preparing metadata (setup.py): started

 Preparing metadata (setup.py): finished with status 'error'


stderr:  Running command git clone --filter=blob:none --quiet https://github.com/TencentARC/GFPGAN.git 'C:\Users\Ҷ\AppData\Local\Temp\pip-req-build-c_01q96r'

 Running command git rev-parse -q --verify 'sha^8d2447a2d918f8eba5a4a01463fd48e45126a379'

 Running command git fetch -q https://github.com/TencentARC/GFPGAN.git 8d2447a2d918f8eba5a4a01463fd48e45126a379

 Running command git checkout -q 8d2447a2d918f8eba5a4a01463fd48e45126a379

 error: subprocess-exited-with-error


 python setup.py egg_info did not run successfully.

 exit code: 1


 [41 lines of output]

 D:\AI\stable-diffusion-webui\YEHAONAN\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.

 WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:997)'))': /simple/cython/

 WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:997)'))': /simple/cython/

 WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:997)'))': /simple/cython/

 WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:997)'))': /simple/cython/

 WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:997)'))': /simple/cython/

 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 "D:\AI\stable-diffusion-webui\YEHAONAN\lib\site-packages\setuptools\installer.py", line 82, in fetch_build_egg

   subprocess.check_call(cmd)

  File "D:\python\lib\subprocess.py", line 369, in check_call

   raise CalledProcessError(retcode, cmd)

 subprocess.CalledProcessError: Command '['D:\\AI\\stable-diffusion-webui\\YEHAONAN\\Scripts\\python.exe', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', 'C:\\Users\\Ҷ\\AppData\\Local\\Temp\\tmpjnx86i74', '--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 "<string>", line 2, in <module>

  File "<pip-setuptools-caller>", line 34, in <module>

  File "C:\Users\Ҷ\AppData\Local\Temp\pip-req-build-c_01q96r\setup.py", line 84, in <module>

   setup(

  File "D:\AI\stable-diffusion-webui\YEHAONAN\lib\site-packages\setuptools\__init__.py", line 86, in setup

   _install_setup_requires(attrs)

  File "D:\AI\stable-diffusion-webui\YEHAONAN\lib\site-packages\setuptools\__init__.py", line 80, in _install_setup_requires

   dist.fetch_build_eggs(dist.setup_requires)

  File "D:\AI\stable-diffusion-webui\YEHAONAN\lib\site-packages\setuptools\dist.py", line 875, in fetch_build_eggs

   resolved_dists = pkg_resources.working_set.resolve(

  File "D:\AI\stable-diffusion-webui\YEHAONAN\lib\site-packages\pkg_resources\__init__.py", line 789, in resolve

   dist = best[req.key] = env.best_match(

  File "D:\AI\stable-diffusion-webui\YEHAONAN\lib\site-packages\pkg_resources\__init__.py", line 1075, in best_match

   return self.obtain(req, installer)

  File "D:\AI\stable-diffusion-webui\YEHAONAN\lib\site-packages\pkg_resources\__init__.py", line 1087, in obtain

   return installer(requirement)

  File "D:\AI\stable-diffusion-webui\YEHAONAN\lib\site-packages\setuptools\dist.py", line 945, in fetch_build_egg

   return fetch_build_egg(self, req)

  File "D:\AI\stable-diffusion-webui\YEHAONAN\lib\site-packages\setuptools\installer.py", line 84, in fetch_build_egg

   raise DistutilsError(str(e)) from e

 distutils.errors.DistutilsError: Command '['D:\\AI\\stable-diffusion-webui\\YEHAONAN\\Scripts\\python.exe', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', 'C:\\Users\\Ҷ\\AppData\\Local\\Temp\\tmpjnx86i74', '--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.



请按任意键继续. . .

最强 AI 绘画工具——Stable Diffusion超详细教程的评论 (共 条)

分享到微博请遵守国家法律