6-基于Zho的Ultraedit工作流 副本
倘若更新完节点后还报红:
那么我们打开
输入下载代码:
pip install git+
https://github.com/HaozheZhao/UltraEdit.git@main#subdirectory=diffusers
假如像上图一样安装不成功,那么请第二天早上再试,大概率是晚上科学网络不稳定导致的
然后就能成功了:
以下是下载成功的日志(可以不看)
C:\Users\Admin\Desktop\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-UltraEdit-ZHO>pip install git+
https://github.com/HaozheZhao/UltraEdit.git@main#subdirectory=diffusers
Looking in indexes:
https://mirrors.cloud.tencent.com/pypi/simple
Collecting git+
https://github.com/HaozheZhao/UltraEdit.git@main#subdirectory=diffusers
Cloning
https://github.com/HaozheZhao/UltraEdit.git
(to revision main) to c:\users\admin\appdata\local\temp\pip-req-build-zk2i4ewj
Running command git clone --filter=blob:none --quiet
https://github.com/HaozheZhao/UltraEdit.git
'C:\Users\Admin\AppData\Local\Temp\pip-req-build-zk2i4ewj'
Resolved
https://github.com/HaozheZhao/UltraEdit.git
to commit f6469a7ee3d3ac461e3447e1c3be46d6342d827a
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: importlib-metadata in c:\users\admin\appdata\local\programs\python\python310\lib\site-packages (from diffusers==0.30.0.dev0) (7.0.0)
Requirement already satisfied: filelock in c:\users\admin\appdata\local\programs\python\python310\lib\site-packages (from diffusers==0.30.0.dev0) (3.13.1)
Collecting huggingface-hub>=0.23.2 (from diffusers==0.30.0.dev0)
Downloading
https://mirrors.cloud.tencent.com/pypi/packages/69/d6/73f9d1b7c4da5f0544bc17680d0fa9932445423b90cd38e1ee77d001a4f5/huggingface_hub-0.23.4-py3-none-any.whl
(402 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 402.6/402.6 kB 26.2 MB/s eta 0:00:00
Requirement already satisfied: numpy in c:\users\admin\appdata\local\programs\python\python310\lib\site-packages (from diffusers==0.30.0.dev0) (1.24.4)
Requirement already satisfied: regex!=2019.12.17 in c:\users\admin\appdata\local\programs\python\python310\lib\site-packages (from diffusers==0.30.0.dev0) (2023.10.3)
Requirement already satisfied: requests in c:\users\admin\appdata\local\programs\python\python310\lib\site-packages (from diffusers==0.30.0.dev0) (2.31.0)
Requirement already satisfied: safetensors>=0.3.1 in c:\users\admin\appdata\local\programs\python\python310\lib\site-packages (from diffusers==0.30.0.dev0) (0.4.0)
Requirement already satisfied: Pillow in c:\users\admin\appdata\local\programs\python\python310\lib\site-packages (from diffusers==0.30.0.dev0) (9.5.0)
Requirement already satisfied: fsspec>=2023.5.0 in c:\users\admin\appdata\local\programs\python\python310\lib\site-packages (from huggingface-hub>=0.23.2->diffusers==0.30.0.dev0) (2023.10.0)
Requirement already satisfied: packaging>=20.9 in c:\users\admin\appdata\local\programs\python\python310\lib\site-packages (from huggingface-hub>=0.23.2->diffusers==0.30.0.dev0) (23.2)
Requirement already satisfied: pyyaml>=5.1 in c:\users\admin\appdata\local\programs\python\python310\lib\site-packages (from huggingface-hub>=0.23.2->diffusers==0.30.0.dev0) (6.0.1)
Requirement already satisfied: tqdm>=4.42.1 in c:\users\admin\appdata\local\programs\python\python310\lib\site-packages (from huggingface-hub>=0.23.2->diffusers==0.30.0.dev0) (4.66.1)
Requirement already satisfied: typing-extensions>=3.7.4.3 in c:\users\admin\appdata\local\programs\python\python310\lib\site-packages (from huggingface-hub>=0.23.2->diffusers==0.30.0.dev0) (4.8.0)
Requirement already satisfied: zipp>=0.5 in c:\users\admin\appdata\local\programs\python\python310\lib\site-packages (from importlib-metadata->diffusers==0.30.0.dev0) (3.17.0)
Requirement already satisfied: charset-normalizer<4,>=2 in c:\users\admin\appdata\local\programs\python\python310\lib\site-packages (from requests->diffusers==0.30.0.dev0) (3.3.2)
Requirement already satisfied: idna<4,>=2.5 in c:\users\admin\appdata\local\programs\python\python310\lib\site-packages (from requests->diffusers==0.30.0.dev0) (3.4)
Requirement already satisfied: urllib3<3,>=1.21.1 in c:\users\admin\appdata\local\programs\python\python310\lib\site-packages (from requests->diffusers==0.30.0.dev0) (2.0.7)
Requirement already satisfied: certifi>=2017.4.17 in c:\users\admin\appdata\local\programs\python\python310\lib\site-packages (from requests->diffusers==0.30.0.dev0) (2023.7.22)
Requirement already satisfied: colorama in c:\users\admin\appdata\local\programs\python\python310\lib\site-packages (from tqdm>=4.42.1->huggingface-hub>=0.23.2->diffusers==0.30.0.dev0) (0.4.6)
Building wheels for collected packages: diffusers
Building wheel for diffusers (pyproject.toml) ... done
Created wheel for diffusers: filename=diffusers-0.30.0.dev0-py3-none-any.whl size=2232558 sha256=899c4e3611c18b31aeee3fb47292f21c8c95645827fc158832818ff1be5cdd23
Stored in directory: C:\Users\Admin\AppData\Local\Temp\pip-ephem-wheel-cache-a5tk6end\wheels\39\73\8d\26c716f74973bdeced0554194f5b603ce6f985f6b2f1a45731
Successfully built diffusers
Installing collected packages: huggingface-hub, diffusers
Attempting uninstall: huggingface-hub
Found existing installation: huggingface-hub 0.20.3
Uninstalling huggingface-hub-0.20.3:
Successfully uninstalled huggingface-hub-0.20.3
Attempting uninstall: diffusers
Found existing installation: diffusers 0.27.0.dev0
Uninstalling diffusers-0.27.0.dev0:
Successfully uninstalled diffusers-0.27.0.dev0
Successfully installed diffusers-0.30.0.dev0 huggingface-hub-0.23.4
假如安装完且重启后依旧报红,那么继续在刚才的目录下输入更新配置的代码:
C:\Users\Admin\Desktop\ComfyUI-aki-v1.3\python\python.exe -m pip install -r requirements.txt
上面的代码是这么理解的:找到自己comfyui的总文件夹,找到下面文件中的python文件夹(有些人的是python_emembeded)中的python.exe(可执行文件,右键属性复制路径,然后继续在我们的C:\Users\Admin\Desktop\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-UltraEdit-ZHO>这个文件路径下cmd就可以进入终端)
右键粘贴刚才的路径 加\python.exe -m pip install -r requirements.txt
以下是下载成功的日志(可以不看)
C:\Users\Admin\Desktop\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-UltraEdit-ZHO>C:\Users\Admin\Desktop\ComfyUI-aki-v1.3\python\python.exe -m pip install -r requirements.txt
Looking in indexes: https://mirrors.cloud.tencent.com/pypi/simple
Collecting git+https://github.com/HaozheZhao/UltraEdit.git@main#subdirectory=diffusers (from -r requirements.txt (line 1))
Cloning https://github.com/HaozheZhao/UltraEdit.git (to revision main) to c:\users\admin\appdata\local\temp\pip-req-build-3z1gwrcm
Running command git clone --filter=blob:none --quiet https://github.com/HaozheZhao/UltraEdit.git 'C:\Users\Admin\AppData\Local\Temp\pip-req-build-3z1gwrcm'
Resolved https://github.com/HaozheZhao/UltraEdit.git to commit f6469a7ee3d3ac461e3447e1c3be46d6342d827a
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: filelock in c:\users\admin\desktop\comfyui-aki-v1.3\python\lib\site-packages (from diffusers==0.30.0.dev0->-r requirements.txt (line 1)) (3.12.4)
Requirement already satisfied: huggingface-hub>=0.23.2 in c:\users\admin\desktop\comfyui-aki-v1.3\python\lib\site-packages (from diffusers==0.30.0.dev0->-r requirements.txt (line 1)) (0.23.4)
Requirement already satisfied: regex!=2019.12.17 in c:\users\admin\desktop\comfyui-aki-v1.3\python\lib\site-packages (from diffusers==0.30.0.dev0->-r requirements.txt (line 1)) (2023.8.8)
Requirement already satisfied: Pillow in c:\users\admin\desktop\comfyui-aki-v1.3\python\lib\site-packages (from diffusers==0.30.0.dev0->-r requirements.txt (line 1)) (10.4.0)
Requirement already satisfied: importlib-metadata in c:\users\admin\desktop\comfyui-aki-v1.3\python\lib\site-packages (from diffusers==0.30.0.dev0->-r requirements.txt (line 1)) (6.8.0)
Requirement already satisfied: numpy in c:\users\admin\desktop\comfyui-aki-v1.3\python\lib\site-packages (from diffusers==0.30.0.dev0->-r requirements.txt (line 1)) (1.26.4)
Requirement already satisfied: requests in c:\users\admin\desktop\comfyui-aki-v1.3\python\lib\site-packages (from diffusers==0.30.0.dev0->-r requirements.txt (line 1)) (2.32.3)
Requirement already satisfied: safetensors>=0.3.1 in c:\users\admin\desktop\comfyui-aki-v1.3\python\lib\site-packages (from diffusers==0.30.0.dev0->-r requirements.txt (line 1)) (0.4.2)
Requirement already satisfied: tqdm>=4.42.1 in c:\users\admin\desktop\comfyui-aki-v1.3\python\lib\site-packages (from huggingface-hub>=0.23.2->diffusers==0.30.0.dev0->-r requirements.txt (line 1)) (4.66.4)
Requirement already satisfied: fsspec>=2023.5.0 in c:\users\admin\desktop\comfyui-aki-v1.3\python\lib\site-packages (from huggingface-hub>=0.23.2->diffusers==0.30.0.dev0->-r requirements.txt (line 1)) (2023.9.1)
Requirement already satisfied: pyyaml>=5.1 in c:\users\admin\desktop\comfyui-aki-v1.3\python\lib\site-packages (from huggingface-hub>=0.23.2->diffusers==0.30.0.dev0->-r requirements.txt (line 1)) (6.0.1)
Requirement already satisfied: packaging>=20.9 in c:\users\admin\desktop\comfyui-aki-v1.3\python\lib\site-packages (from huggingface-hub>=0.23.2->diffusers==0.30.0.dev0->-r requirements.txt (line 1)) (24.1)
Requirement already satisfied: typing-extensions>=3.7.4.3 in c:\users\admin\desktop\comfyui-aki-v1.3\python\lib\site-packages (from huggingface-hub>=0.23.2->diffusers==0.30.0.dev0->-r requirements.txt (line 1)) (4.8.0)
Requirement already satisfied: zipp>=0.5 in c:\users\admin\desktop\comfyui-aki-v1.3\python\lib\site-packages (from importlib-metadata->diffusers==0.30.0.dev0->-r requirements.txt (line 1)) (3.17.0)
Requirement already satisfied: idna<4,>=2.5 in c:\users\admin\desktop\comfyui-aki-v1.3\python\lib\site-packages (from requests->diffusers==0.30.0.dev0->-r requirements.txt (line 1)) (3.4)
Requirement already satisfied: urllib3<3,>=1.21.1 in c:\users\admin\desktop\comfyui-aki-v1.3\python\lib\site-packages (from requests->diffusers==0.30.0.dev0->-r requirements.txt (line 1)) (1.26.18)
Requirement already satisfied: charset-normalizer<4,>=2 in c:\users\admin\desktop\comfyui-aki-v1.3\python\lib\site-packages (from requests->diffusers==0.30.0.dev0->-r requirements.txt (line 1)) (3.2.0)
Requirement already satisfied: certifi>=2017.4.17 in c:\users\admin\desktop\comfyui-aki-v1.3\python\lib\site-packages (from requests->diffusers==0.30.0.dev0->-r requirements.txt (line 1)) (2023.7.22)
Requirement already satisfied: colorama in c:\users\admin\desktop\comfyui-aki-v1.3\python\lib\site-packages (from tqdm>=4.42.1->huggingface-hub>=0.23.2->diffusers==0.30.0.dev0->-r requirements.txt (line 1)) (0.4.6)
Building wheels for collected packages: diffusers
Building wheel for diffusers (pyproject.toml) ... done
Created wheel for diffusers: filename=diffusers-0.30.0.dev0-py3-none-any.whl size=2232558 sha256=76265667368a24d60b1469de60dad89f74dc748f9181bbde9b4f56c2e990601f
Stored in directory: C:\Users\Admin\AppData\Local\Temp\pip-ephem-wheel-cache-fs44ov7j\wheels\39\73\8d\26c716f74973bdeced0554194f5b603ce6f985f6b2f1a45731
Successfully built diffusers
Installing collected packages: diffusers
Attempting uninstall: diffusers
Found existing installation: diffusers 0.29.2
Uninstalling diffusers-0.29.2:
Successfully uninstalled diffusers-0.29.2
WARNING: The script diffusers-cli.exe is installed in 'C:\Users\Admin\Desktop\ComfyUI-aki-v1.3\python\Scripts' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed diffusers-0.30.0.dev0
[notice] A new release of pip is available: 23.0.1 -> 24.1.1
[notice] To update, run: C:\Users\Admin\Desktop\ComfyUI-aki-v1.3\python\python.exe -m pip install --upgrade pip