ComfyUI-InstantID icon indicating copy to clipboard operation
ComfyUI-InstantID copied to clipboard

Error building insightface?

Open jwvanderbeck opened this issue 1 year ago • 6 comments

Having problems with the "insightface" dependency. The error implies I just needed to install some MS build tools but even after installing those from the URL indicated the error persists for me.

      copying insightface\thirdparty\face3d\mesh\cython\mesh_core_cython.pyx -> build\lib.win-amd64-cpython-311\insightface\thirdparty\face3d\mesh\cython
      copying insightface\thirdparty\face3d\mesh\cython\setup.py -> build\lib.win-amd64-cpython-311\insightface\thirdparty\face3d\mesh\cython
      running build_ext
      building 'insightface.thirdparty.face3d.mesh.cython.mesh_core_cython' extension
      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/
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for insightface
Failed to build insightface
ERROR: Could not build wheels for insightface, which is required to install pyproject.toml-based projects```

jwvanderbeck avatar Jan 23 '24 19:01 jwvanderbeck

So I managed to get this satisfied by installing insightface manually with --prefer-binary so it didn't compile

jwvanderbeck avatar Jan 23 '24 20:01 jwvanderbeck

close

johndpope avatar Jan 24 '24 01:01 johndpope

Im able to build it from a local wsl but it still says ModuleNotFoundError: No module named 'insightface'

aetherwu avatar Jan 24 '24 04:01 aetherwu

if you clone the repo - you can cd into directory python setup.py install

johndpope avatar Jan 24 '24 05:01 johndpope

if you clone the repo - you can cd into directory python setup.py install

Do you mean the root folder of the ComfyUI?

aetherwu avatar Jan 24 '24 07:01 aetherwu

You need download this and do it

alexbofa avatar Jan 25 '24 05:01 alexbofa