安装stable diffusion报错

这篇具有很好参考价值的文章主要介绍了安装stable diffusion报错。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

安装stable diffusion报错

总是报 RuntimeError: Couldn’t install gfpgan.
最终解决方案参照网络文章:https://zhuanlan.zhihu.com/p/608397859
设置了以下之后再重新运行就可以正常安装了

git config --global https.proxy http://127.0.0.1:7890

git config --global https.proxy https://127.0.0.1:7890

https://ghproxy.com/https://github.com/ 

以下为具体的报错内容文章来源地址https://www.toymoban.com/news/detail-754263.html

➜  stable-diffusion-webui-master ./webui.sh

################################################################
Install script for stable-diffusion + Web UI
Tested on Debian 11 (Bullseye)
################################################################

################################################################
Running on hello user
################################################################

################################################################
Create and activate python venv
################################################################

################################################################
Launching launch.py...
################################################################
Python 3.10.4 (v3.10.4:9d38120e33, Mar 23 2022, 17:29:05) [Clang 13.0.0 (clang-1300.0.29.30)]
Version: v1.5.1
Commit hash: 68f336bd994bed5442ad95bad6b6ad5564a5409a
Installing gfpgan
Traceback (most recent call last):
  File "/Users/hello/stable-diffusion-webui/launch.py", line 39, in <module>
    main()
  File "/Users/hello/stable-diffusion-webui/launch.py", line 30, in main
    prepare_environment()
  File "/Users/hello/stable-diffusion-webui/modules/launch_utils.py", line 320, in prepare_environment
    run_pip(f"install {gfpgan_package}", "gfpgan")
  File "/Users/hello/stable-diffusion-webui/modules/launch_utils.py", line 136, 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 "/Users/hello/stable-diffusion-webui/modules/launch_utils.py", line 113, in run
    raise RuntimeError("\n".join(error_bits))
RuntimeError: Couldn't install gfpgan.
Command: "/Users/hello/stable-diffusion-webui/venv/bin/python3.10" -m pip install https://github.com/TencentARC/GFPGAN/archive/8d2447a2d918f8eba5a4a01463fd48e45126a379.zip --prefer-binary
Error code: 1
stdout: 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 'done'
Requirement already satisfied: basicsr>=1.4.2 in ./venv/lib/python3.10/site-packages (from gfpgan==1.3.5) (1.4.2)
Requirement already satisfied: facexlib>=0.2.5 in ./venv/lib/python3.10/site-packages (from gfpgan==1.3.5) (0.3.0)
Requirement already satisfied: lmdb in ./venv/lib/python3.10/site-packages (from gfpgan==1.3.5) (1.4.1)
Requirement already satisfied: numpy in ./venv/lib/python3.10/site-packages (from gfpgan==1.3.5) (1.26.2)
Requirement already satisfied: opencv-python in ./venv/lib/python3.10/site-packages (from gfpgan==1.3.5) (4.8.1.78)
Requirement already satisfied: pyyaml in ./venv/lib/python3.10/site-packages (from gfpgan==1.3.5) (6.0.1)
Requirement already satisfied: scipy in ./venv/lib/python3.10/site-packages (from gfpgan==1.3.5) (1.11.4)
Requirement already satisfied: tb-nightly in ./venv/lib/python3.10/site-packages (from gfpgan==1.3.5) (2.16.0a20231209)
Requirement already satisfied: torch>=1.7 in ./venv/lib/python3.10/site-packages (from gfpgan==1.3.5) (2.0.1)
Requirement already satisfied: torchvision in ./venv/lib/python3.10/site-packages (from gfpgan==1.3.5) (0.15.2)
Requirement already satisfied: tqdm in ./venv/lib/python3.10/site-packages (from gfpgan==1.3.5) (4.66.1)
Requirement already satisfied: yapf in ./venv/lib/python3.10/site-packages (from gfpgan==1.3.5) (0.40.2)
Requirement already satisfied: requests in ./venv/lib/python3.10/site-packages (from basicsr>=1.4.2->gfpgan==1.3.5) (2.31.0)
Requirement already satisfied: addict in ./venv/lib/python3.10/site-packages (from basicsr>=1.4.2->gfpgan==1.3.5) (2.4.0)
Requirement already satisfied: Pillow in ./venv/lib/python3.10/site-packages (from basicsr>=1.4.2->gfpgan==1.3.5) (10.1.0)
Requirement already satisfied: future in ./venv/lib/python3.10/site-packages (from basicsr>=1.4.2->gfpgan==1.3.5) (0.18.3)
Requirement already satisfied: scikit-image in ./venv/lib/python3.10/site-packages (from basicsr>=1.4.2->gfpgan==1.3.5) (0.22.0)
Requirement already satisfied: filterpy in ./venv/lib/python3.10/site-packages (from facexlib>=0.2.5->gfpgan==1.3.5) (1.4.5)
Requirement already satisfied: numba in ./venv/lib/python3.10/site-packages (from facexlib>=0.2.5->gfpgan==1.3.5) (0.58.1)
Requirement already satisfied: typing-extensions in ./venv/lib/python3.10/site-packages (from torch>=1.7->gfpgan==1.3.5) (4.8.0)
Requirement already satisfied: networkx in ./venv/lib/python3.10/site-packages (from torch>=1.7->gfpgan==1.3.5) (3.2.1)
Requirement already satisfied: sympy in ./venv/lib/python3.10/site-packages (from torch>=1.7->gfpgan==1.3.5) (1.12)
Requirement already satisfied: filelock in ./venv/lib/python3.10/site-packages (from torch>=1.7->gfpgan==1.3.5) (3.13.1)
Requirement already satisfied: jinja2 in ./venv/lib/python3.10/site-packages (from torch>=1.7->gfpgan==1.3.5) (3.1.2)
Requirement already satisfied: tf-keras-nightly in ./venv/lib/python3.10/site-packages (from tb-nightly->gfpgan==1.3.5) (2.16.0.dev2023120910)
Requirement already satisfied: protobuf>=3.19.6 in ./venv/lib/python3.10/site-packages (from tb-nightly->gfpgan==1.3.5) (4.25.1)
Requirement already satisfied: werkzeug>=1.0.1 in ./venv/lib/python3.10/site-packages (from tb-nightly->gfpgan==1.3.5) (3.0.1)
Requirement already satisfied: setuptools>=41.0.0 in ./venv/lib/python3.10/site-packages (from tb-nightly->gfpgan==1.3.5) (58.1.0)
Requirement already satisfied: grpcio>=1.48.2 in ./venv/lib/python3.10/site-packages (from tb-nightly->gfpgan==1.3.5) (1.60.0)
Requirement already satisfied: six>1.9 in ./venv/lib/python3.10/site-packages (from tb-nightly->gfpgan==1.3.5) (1.16.0)
Requirement already satisfied: tensorboard-data-server<0.8.0,>=0.7.0 in ./venv/lib/python3.10/site-packages (from tb-nightly->gfpgan==1.3.5) (0.7.2)
Requirement already satisfied: google-auth<3,>=1.6.3 in ./venv/lib/python3.10/site-packages (from tb-nightly->gfpgan==1.3.5) (2.25.2)
Requirement already satisfied: markdown>=2.6.8 in ./venv/lib/python3.10/site-packages (from tb-nightly->gfpgan==1.3.5) (3.5.1)
Requirement already satisfied: google-auth-oauthlib<2,>=0.5 in ./venv/lib/python3.10/site-packages (from tb-nightly->gfpgan==1.3.5) (1.1.0)
Requirement already satisfied: absl-py>=0.4 in ./venv/lib/python3.10/site-packages (from tb-nightly->gfpgan==1.3.5) (2.0.0)
Requirement already satisfied: platformdirs>=3.5.1 in ./venv/lib/python3.10/site-packages (from yapf->gfpgan==1.3.5) (4.1.0)
Requirement already satisfied: importlib-metadata>=6.6.0 in ./venv/lib/python3.10/site-packages (from yapf->gfpgan==1.3.5) (7.0.0)
Requirement already satisfied: tomli>=2.0.1 in ./venv/lib/python3.10/site-packages (from yapf->gfpgan==1.3.5) (2.0.1)
Requirement already satisfied: rsa<5,>=3.1.4 in ./venv/lib/python3.10/site-packages (from google-auth<3,>=1.6.3->tb-nightly->gfpgan==1.3.5) (4.9)
Requirement already satisfied: pyasn1-modules>=0.2.1 in ./venv/lib/python3.10/site-packages (from google-auth<3,>=1.6.3->tb-nightly->gfpgan==1.3.5) (0.3.0)
Requirement already satisfied: cachetools<6.0,>=2.0.0 in ./venv/lib/python3.10/site-packages (from google-auth<3,>=1.6.3->tb-nightly->gfpgan==1.3.5) (5.3.2)
Requirement already satisfied: requests-oauthlib>=0.7.0 in ./venv/lib/python3.10/site-packages (from google-auth-oauthlib<2,>=0.5->tb-nightly->gfpgan==1.3.5) (1.3.1)
Requirement already satisfied: zipp>=0.5 in ./venv/lib/python3.10/site-packages (from importlib-metadata>=6.6.0->yapf->gfpgan==1.3.5) (3.17.0)
Requirement already satisfied: charset-normalizer<4,>=2 in ./venv/lib/python3.10/site-packages (from requests->basicsr>=1.4.2->gfpgan==1.3.5) (3.3.2)
Requirement already satisfied: idna<4,>=2.5 in ./venv/lib/python3.10/site-packages (from requests->basicsr>=1.4.2->gfpgan==1.3.5) (3.6)
Requirement already satisfied: certifi>=2017.4.17 in ./venv/lib/python3.10/site-packages (from requests->basicsr>=1.4.2->gfpgan==1.3.5) (2023.11.17)
Requirement already satisfied: urllib3<3,>=1.21.1 in ./venv/lib/python3.10/site-packages (from requests->basicsr>=1.4.2->gfpgan==1.3.5) (2.1.0)
Requirement already satisfied: MarkupSafe>=2.1.1 in ./venv/lib/python3.10/site-packages (from werkzeug>=1.0.1->tb-nightly->gfpgan==1.3.5) (2.1.3)
Requirement already satisfied: matplotlib in ./venv/lib/python3.10/site-packages (from filterpy->facexlib>=0.2.5->gfpgan==1.3.5) (3.8.2)
Requirement already satisfied: llvmlite<0.42,>=0.41.0dev0 in ./venv/lib/python3.10/site-packages (from numba->facexlib>=0.2.5->gfpgan==1.3.5) (0.41.1)
Requirement already satisfied: packaging>=21 in ./venv/lib/python3.10/site-packages (from scikit-image->basicsr>=1.4.2->gfpgan==1.3.5) (23.2)
Requirement already satisfied: imageio>=2.27 in ./venv/lib/python3.10/site-packages (from scikit-image->basicsr>=1.4.2->gfpgan==1.3.5) (2.33.0)
Requirement already satisfied: lazy_loader>=0.3 in ./venv/lib/python3.10/site-packages (from scikit-image->basicsr>=1.4.2->gfpgan==1.3.5) (0.3)
Requirement already satisfied: tifffile>=2022.8.12 in ./venv/lib/python3.10/site-packages (from scikit-image->basicsr>=1.4.2->gfpgan==1.3.5) (2023.9.26)
Requirement already satisfied: mpmath>=0.19 in ./venv/lib/python3.10/site-packages (from sympy->torch>=1.7->gfpgan==1.3.5) (1.3.0)
Requirement already satisfied: pyasn1<0.6.0,>=0.4.6 in ./venv/lib/python3.10/site-packages (from pyasn1-modules>=0.2.1->google-auth<3,>=1.6.3->tb-nightly->gfpgan==1.3.5) (0.5.1)
Requirement already satisfied: oauthlib>=3.0.0 in ./venv/lib/python3.10/site-packages (from requests-oauthlib>=0.7.0->google-auth-oauthlib<2,>=0.5->tb-nightly->gfpgan==1.3.5) (3.2.2)
Requirement already satisfied: pyparsing>=2.3.1 in ./venv/lib/python3.10/site-packages (from matplotlib->filterpy->facexlib>=0.2.5->gfpgan==1.3.5) (3.1.1)
Requirement already satisfied: cycler>=0.10 in ./venv/lib/python3.10/site-packages (from matplotlib->filterpy->facexlib>=0.2.5->gfpgan==1.3.5) (0.12.1)
Requirement already satisfied: fonttools>=4.22.0 in ./venv/lib/python3.10/site-packages (from matplotlib->filterpy->facexlib>=0.2.5->gfpgan==1.3.5) (4.46.0)
Requirement already satisfied: contourpy>=1.0.1 in ./venv/lib/python3.10/site-packages (from matplotlib->filterpy->facexlib>=0.2.5->gfpgan==1.3.5) (1.2.0)
Requirement already satisfied: kiwisolver>=1.3.1 in ./venv/lib/python3.10/site-packages (from matplotlib->filterpy->facexlib>=0.2.5->gfpgan==1.3.5) (1.4.5)
Requirement already satisfied: python-dateutil>=2.7 in ./venv/lib/python3.10/site-packages (from matplotlib->filterpy->facexlib>=0.2.5->gfpgan==1.3.5) (2.8.2)
Using legacy 'setup.py install' for gfpgan, since package 'wheel' is not installed.
Installing collected packages: gfpgan
  Running setup.py install for gfpgan: started
  Running setup.py install for gfpgan: finished with status 'error'

stderr:   error: subprocess-exited-with-error

  × Running setup.py install for gfpgan did not run successfully.
  │ exit code: 1
  ╰─> [29 lines of output]
      WARNING: The wheel package is not available.
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/private/var/folders/xf/zm5xhx594g58t4r6n8d00hzr0000gp/T/pip-req-build-fp6vc_gs/setup.py", line 84, in <module>
          setup(
        File "/Users/hello/stable-diffusion-webui/venv/lib/python3.10/site-packages/setuptools/__init__.py", line 152, in setup
          _install_setup_requires(attrs)
        File "/Users/hello/stable-diffusion-webui/venv/lib/python3.10/site-packages/setuptools/__init__.py", line 147, in _install_setup_requires
          dist.fetch_build_eggs(dist.setup_requires)
        File "/Users/hello/stable-diffusion-webui/venv/lib/python3.10/site-packages/setuptools/dist.py", line 806, in fetch_build_eggs
          resolved_dists = pkg_resources.working_set.resolve(
        File "/Users/hello/stable-diffusion-webui/venv/lib/python3.10/site-packages/pkg_resources/__init__.py", line 766, in resolve
          dist = best[req.key] = env.best_match(
        File "/Users/hello/stable-diffusion-webui/venv/lib/python3.10/site-packages/pkg_resources/__init__.py", line 1051, in best_match
          return self.obtain(req, installer)
        File "/Users/hello/stable-diffusion-webui/venv/lib/python3.10/site-packages/pkg_resources/__init__.py", line 1063, in obtain
          return installer(requirement)
        File "/Users/hello/stable-diffusion-webui/venv/lib/python3.10/site-packages/setuptools/dist.py", line 877, in fetch_build_egg
          return fetch_build_egg(self, req)
        File "/Users/hello/stable-diffusion-webui/venv/lib/python3.10/site-packages/setuptools/installer.py", line 80, in fetch_build_egg
          wheel.install_as_egg(dist_location)
        File "/Users/hello/stable-diffusion-webui/venv/lib/python3.10/site-packages/setuptools/wheel.py", line 95, in install_as_egg
          self._install_as_egg(destination_eggdir, zf)
        File "/Users/hello/stable-diffusion-webui/venv/lib/python3.10/site-packages/setuptools/wheel.py", line 103, in _install_as_egg
          self._convert_metadata(zf, destination_eggdir, dist_info, egg_info)
        File "/Users/hello/stable-diffusion-webui/venv/lib/python3.10/site-packages/setuptools/wheel.py", line 124, in _convert_metadata
          os.mkdir(destination_eggdir)
      FileExistsError: [Errno 17] File exists: '/private/var/folders/xf/zm5xhx594g58t4r6n8d00hzr0000gp/T/pip-req-build-fp6vc_gs/.eggs/Cython-3.0.6-py3.10-macosx-10.9-universal2.egg'
      [end of output]

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

× Encountered error while trying to install package.
╰─> gfpgan

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
WARNING: You are using pip version 22.0.4; however, version 23.3.1 is available.
You should consider upgrading via the '/Users/hello/stable-diffusion-webui/venv/bin/python3.10 -m pip install --upgrade pip' command.

到了这里,关于安装stable diffusion报错的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

  • stable diffusion秋叶整合包安装时报错No Python at ‘“D:\python\python.exe‘请按任意键继续. . .人工智能画画AI绘图报错解决

    使用秋叶的stable diffusion整合包报错,原因是原先安装过python,后面卸载了,然后还有anaconda和一些其他软件有自带的python,我先在C盘搜索python,删除搜索到的所有文件,因为秋叶的整合包有python,我运行还是报错,找了很久,终于找到了python的配置文件,在E:AIAI2sd-webui-a

    2024年02月11日
    浏览(43)
  • Stable Diffusion:Linux、Mac环境安装教程

    脚本获取链接:https://repo.anaconda.com/archive/ 一路回车,该输yes输yes 使用conda安装python3.10.9的环境 如果没有安装conda先安装conda,或者自行搜索Linux安装python3.10.9进行安装 创建完成之后,使用该环境 官网:https://pytorch.org/get-started/locally/#mac-prerequisites Linux,Mac都可以用下面的下载

    2024年02月10日
    浏览(68)
  • stable-diffusion-webui 本地部署git报错问题解决

    运行时python launch.py --autolaunch 产生Error code:1 由于git安全机制问题,导致项目读取不到相应的 stable-diffusion-stability-ai等插件 。 1:依次忽略相关文件夹: 2:直接使用 git bash 打开运行  

    2024年02月11日
    浏览(52)
  • 【AI绘图】二、stable diffusion环境准备与安装

    前一篇:一、stable diffusion的发展史 放一张SD的效果图 Stable Diffusion是使用显卡生成图片,对电脑硬件有一定要求。 电脑配置最核心的关键点: 看显卡、看内存、看硬盘、看 CPU。 显卡:N 卡(英伟达 Nvida 独立显卡)首选,最低 10 系起步,体验感佳用 40 系, 显存最低 4G,6G

    2024年02月09日
    浏览(60)
  • stable diffusion安装问题求教!

    最后的webui-user.bat执行的过程真的是痛苦而漫长,网上什么破教程,问题一个接一个,解决一个就跳出另一个! 现在卡在这里了! 求教!如何解决。 Traceback (most recent call last):   File \\\"D:SDAIstable-diffusion-webuilaunch.py\\\", line 380, in module     prepare_environment()   File \\\"D:SDAIstable-diff

    2024年01月16日
    浏览(44)
  • Mac环境 Stable Diffusion Web Ui 安装教程

            Stable Diffusion Web UI 是一个基于 Stable Diffusion 的基础应用,利用 gradio 模块搭建出交互程序,可以在低代码 GUI 中立即访问 Stable Diffusion:      1、Stable Diffusion 是一个画像生成 AI,能够模拟和重建几乎任何可以以视觉形式想象的概念,而无需文本提示输入之外的任何指

    2024年02月13日
    浏览(45)
  • m2安装stable-diffusion报错及解决方案

    背景:自己的电脑是macbookpro m2,之前装很多软件都遇到各种问题,不出意外,装这个stable-diffusion一样遇到各种问题,现在总结一下安装过程中遇到的问题。 报错一: 原因:torch 的版本不对 解决方案:在安装目录stable-diffusion-webui 下,编辑webui-macos-env.sh 文件 我的原来的配置文

    2024年02月20日
    浏览(35)
  • 【AI绘图 丨 Stable_diffusion 系列教程四】— Window 环境 | Stable Diffusion入门教程 及安装(全篇)

      最近,AI图像生成引人注目,它能够根据文字描述生成精美图像,这极大地改变了人们的图像创作方式。Stable Diffusion作为一款高性能模型,它生成的图像质量更高、运行速度更快、消耗的资源以及内存占用更小,是AI图像生成领域的里程碑。本篇文章作者将手把手教大家入

    2024年02月13日
    浏览(65)
  • 【AI绘图 丨 Stable_diffusion 系列教程一】— Window 环境 | Stable Diffusion入门教程 及安装(上篇)

    不过确实,Midjourney生成的图片很难精准的控制,随机性很高,需要大量的跑图(为此我也回复了很多很多信息就是让小伙伴们多跑图...),不过没关系,受到社群小伙伴们的强烈建议(也包括我可以少回复点消息),我在这篇文章中为大家分享SD的教程。 这时候肯定有朋友心

    2024年02月09日
    浏览(50)
  • 在自己conda环境下安装使用stable diffusion webui

    conda create -n stdwebui python=3.10 git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git conda activate stdwebui linux 下 新建.pip文件夹和pip.conf文件并在其中写入修改源,这里使用豆瓣源。 确保在当前环境下 pycharm右下角有当前环境显示, 打开launch.py 文件左键运行就可以 第一次运行会下

    2024年02月14日
    浏览(42)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包