本文主要是介绍用webui.sh安装报错No module named ‘importlib.metadata‘,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
安装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_utilsFile "/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']
解决,退出conda环境,删除之前在stable-diffusion-webui/中的venv的文件夹,然后再试试。
退出conda环境指令:
conda deactivate
退出指令多执行几次,直到前面没小括号。
这篇关于用webui.sh安装报错No module named ‘importlib.metadata‘的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!