当前位置:   article > 正文

用webui.sh安装报错No module named ‘importlib.metadata‘_cannot locate tcmalloc. do you have tcmalloc or go

cannot locate tcmalloc. do you have tcmalloc or google-perftool installed on

安装sdweb报错,出现No module named 'importlib.metadata:

glibc version is 2.35
Cannot locate TCMalloc. Do you have tcmalloc or google-perftool installed on your system? (improves CPU memory usage)
Traceback (most recent call last):
  File "launch.py", line 1, in <module>
    from modules import launch_utils
  File "/ssd/xiedong/stable-diffusion-webui/modules/launch_utils.py", line 9, in <module>
    import importlib.metadata
ModuleNotFoundError: No module named 'importlib.metadata'
(py37c)   Thu May 09 #   13:56:05 #   /ssd/xiedong # conda deactivate py37c
deactivate does not accept arguments
remainder_args: ['py37c']

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12

解决,退出conda环境,删除之前在stable-diffusion-webui/中的venv的文件夹,然后再试试。

退出conda环境指令:

conda deactivate
  • 1

退出指令多执行几次,直到前面没小括号。
在这里插入图片描述

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/小丑西瓜9/article/detail/639514
推荐阅读
相关标签
  

闽ICP备14008679号