安装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']
解决,退出conda环境,删除之前在stable-diffusion-webui/中的venv的文件夹,然后再试试。
退出conda环境指令:
conda deactivate
退出指令多执行几次,直到前面没小括号。