Closed jimweaver closed 1 week ago
pip check insightface confection 0.0.4 has requirement pydantic!=1.8,!=1.8.1,<1.11.0,>=1.7.4, but you have pydantic 2.7.0. spacy 3.4.4 has requirement pydantic!=1.8,!=1.8.1,<1.11.0,>=1.7.4, but you have pydantic 2.7.0. thinc 8.1.9 has requirement pydantic!=1.8,!=1.8.1,<1.11.0,>=1.7.4, but you have pydantic 2.7.0.
Did you run
pip install -U insightface
Yeah, I already did. The version I have installed is 0.7.3.
It seems like many people have this issue[^1] [^2] [^3]. Make sure you use the python
that runs ComfyUI.
So, something like python_embeded\python.exe -m pip install -U insightface
[^1]: Dependencies missing for Insightface · Issue #162 · cubiq/ComfyUI_IPAdapter_plus (github.com)
[^2]: Installing Insightface : r/comfyui (reddit.com)
[^3]: Installing insightface... : r/comfyui (reddit.com)
There are also prebuilt packages so you don’t have to build it yourself:
instructions from the reactor node.
Instructions from a reddit user:
From the ComfyUI root folder (where you have "webui-user.bat" file) check the version of Python aka run CMD and type "python_embeded\python.exe -V"
- Depending on Python version (3.10 or 3.11) download prebuilt Insightface package to ComfyUI root folder:
Python 3.10: https://github.com/Gourieff/Assets/raw/main/Insightface/insightface-0.7.3-cp310-cp310-win_amd64.whl>
Python 3.11: https://github.com/Gourieff/Assets/raw/main/Insightface/insightface-0.7.3-cp311-cp311-win_amd64.whl>- Install latest pip version: "
python_embeded\python.exe -m pip install -U pip
"- Install Insightface:
Python 3.10: "python_embeded\python.exe -m pip install insightface-0.7.3-cp310-cp310-win_amd64.whl
"
Python 3.11: "python_embeded\python.exe -m pip install insightface-0.7.3-cp311-cp311-win_amd64.whl
"
I'm using a launcher called Stability Matrix as a manager for ComfyUI. I'll go ahead and try to install insightface again.
Problem solved! I guess the Stability Matrix has it own python 3.10 env.
I have follow the https://github.com/Gourieff/comfyui-reactor-node#i-for-windows-users-if-you-still-cannot-build-insightface-for-some-reasons-or-just-dont-want-to-install-visual-studio-or-vs-c-build-tools---do-the-following and downloaded prebuilt Insightface package into ComfyUI root folder in .venv/script through CMD
- python.exe -m pip install insightface
Finally, Stable Matrix is able to find insightface and install ComfyUI-PhotoMaker-Plus.
Shiimizu, I'm facing this issue hopefully you can figure this out.
(IMPORT FAILED): C:\Art and Media\Data\Packages\ComfyUI\custom_nodes\ComfyUI-PhotoMaker-Plus
Message from console:
From cmd: