Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building wheel for insightface (pyproject.toml): finished with status 'error' #2696

Open
LuizCesarLeite opened this issue Nov 24, 2024 · 2 comments

Comments

@LuizCesarLeite
Copy link

I'm trying to install insightface but always returning this:

[!]   Building wheel for insightface (pyproject.toml) did not run successfully.
[!]   exit code: 1
[!]
[!]   [213 lines of output]

Looking at the output I guess that the most important lines are:

[!]   C:\ComfyUI\ComfyUI_windows_portable_2\python_embeded\Lib\site-packages\setuptools\command\build_py.py:212: _Warning: Package 'insightface.thirdparty.face3d.mesh.cython' is absent from the `packages` configuration.

[!]   C:\ComfyUI\ComfyUI_windows_portable_2\python_embeded\Lib\site-packages\setuptools\command\build_py.py:212: _Warning: Package 'insightface.data.images' is absent from the `packages` configuration.

[!]   C:\ComfyUI\ComfyUI_windows_portable_2\python_embeded\Lib\site-packages\setuptools\command\build_py.py:212: _Warning: Package 'insightface.data.objects' is absent from the `packages` configuration.

I also noted this:

(error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/)

I downloaded and looks like it is installed but I can't confim it :-(

Any clues to fix all this mess?

@sahasraa
Copy link

are you using python 3.7 or later?
error in building wheels occurs mostly with older versions of python. i initially faced the same error but i upgraded my python version to 3.9. it is working fine

@LuizCesarLeite
Copy link
Author

Thanks for the remider @sahasraa, I forgot to mention my setup:

  • Win 11
  • Python 3.11.9
  • ComfyUI Portable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants