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

ERROR: Could not build wheels for insightface, which is required to install pyproject.toml-based projects, ERROR: Failed building wheel for insightface #2340

Closed
swumagic opened this issue Jun 12, 2023 · 36 comments

Comments

@swumagic
Copy link

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

Building wheels for collected packages: insightface
Building wheel for insightface (pyproject.toml) ... error
error: subprocess-exited-with-error

× Building wheel for insightface (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [192 lines of output]
WARNING: pandoc not enabled
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-cpython-310
creating build\lib.win-amd64-cpython-310\insightface
copying insightface_init_.py -> build\lib.win-amd64-cpython-310\insightface
creating build\lib.win-amd64-cpython-310\insightface\app
copying insightface\app\common.py -> build\lib.win-amd64-cpython-310\insightface\app
copying insightface\app\face_analysis.py -> build\lib.win-amd64-cpython-310\insightface\app
copying insightface\app\mask_renderer.py -> build\lib.win-amd64-cpython-310\insightface\app
copying insightface\app_init_.py -> build\lib.win-amd64-cpython-310\insightface\app
creating build\lib.win-amd64-cpython-310\insightface\commands
copying insightface\commands\insightface_cli.py -> build\lib.win-amd64-cpython-310\insightface\commands
copying insightface\commands\model_download.py -> build\lib.win-amd64-cpython-310\insightface\commands
copying insightface\commands\rec_add_mask_param.py -> build\lib.win-amd64-cpython-310\insightface\commands
copying insightface\commands_init_.py -> build\lib.win-amd64-cpython-310\insightface\commands
creating build\lib.win-amd64-cpython-310\insightface\data
copying insightface\data\image.py -> build\lib.win-amd64-cpython-310\insightface\data
copying insightface\data\pickle_object.py -> build\lib.win-amd64-cpython-310\insightface\data
copying insightface\data\rec_builder.py -> build\lib.win-amd64-cpython-310\insightface\data
copying insightface\data_init_.py -> build\lib.win-amd64-cpython-310\insightface\data
creating build\lib.win-amd64-cpython-310\insightface\model_zoo
copying insightface\model_zoo\arcface_onnx.py -> build\lib.win-amd64-cpython-310\insightface\model_zoo
copying insightface\model_zoo\attribute.py -> build\lib.win-amd64-cpython-310\insightface\model_zoo
copying insightface\model_zoo\inswapper.py -> build\lib.win-amd64-cpython-310\insightface\model_zoo
copying insightface\model_zoo\landmark.py -> build\lib.win-amd64-cpython-310\insightface\model_zoo
copying insightface\model_zoo\model_store.py -> build\lib.win-amd64-cpython-310\insightface\model_zoo
copying insightface\model_zoo\model_zoo.py -> build\lib.win-amd64-cpython-310\insightface\model_zoo
copying insightface\model_zoo\retinaface.py -> build\lib.win-amd64-cpython-310\insightface\model_zoo
copying insightface\model_zoo\scrfd.py -> build\lib.win-amd64-cpython-310\insightface\model_zoo
copying insightface\model_zoo_init_.py -> build\lib.win-amd64-cpython-310\insightface\model_zoo
creating build\lib.win-amd64-cpython-310\insightface\thirdparty
copying insightface\thirdparty_init_.py -> build\lib.win-amd64-cpython-310\insightface\thirdparty
creating build\lib.win-amd64-cpython-310\insightface\utils
copying insightface\utils\constant.py -> build\lib.win-amd64-cpython-310\insightface\utils
copying insightface\utils\download.py -> build\lib.win-amd64-cpython-310\insightface\utils
copying insightface\utils\face_align.py -> build\lib.win-amd64-cpython-310\insightface\utils
copying insightface\utils\filesystem.py -> build\lib.win-amd64-cpython-310\insightface\utils
copying insightface\utils\storage.py -> build\lib.win-amd64-cpython-310\insightface\utils
copying insightface\utils\transform.py -> build\lib.win-amd64-cpython-310\insightface\utils
copying insightface\utils_init_.py -> build\lib.win-amd64-cpython-310\insightface\utils
creating build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d
copying insightface\thirdparty\face3d_init_.py -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d
creating build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh
copying insightface\thirdparty\face3d\mesh\io.py -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh
copying insightface\thirdparty\face3d\mesh\light.py -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh
copying insightface\thirdparty\face3d\mesh\render.py -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh
copying insightface\thirdparty\face3d\mesh\transform.py -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh
copying insightface\thirdparty\face3d\mesh\vis.py -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh
copying insightface\thirdparty\face3d\mesh_init_.py -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh
creating build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh_numpy
copying insightface\thirdparty\face3d\mesh_numpy\io.py -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh_numpy
copying insightface\thirdparty\face3d\mesh_numpy\light.py -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh_numpy
copying insightface\thirdparty\face3d\mesh_numpy\render.py -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh_numpy
copying insightface\thirdparty\face3d\mesh_numpy\transform.py -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh_numpy
copying insightface\thirdparty\face3d\mesh_numpy\vis.py -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh_numpy
copying insightface\thirdparty\face3d\mesh_numpy_init_.py -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh_numpy
creating build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\morphable_model
copying insightface\thirdparty\face3d\morphable_model\fit.py -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\morphable_model
copying insightface\thirdparty\face3d\morphable_model\load.py -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\morphable_model
copying insightface\thirdparty\face3d\morphable_model\morphabel_model.py -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\morphable_model
copying insightface\thirdparty\face3d\morphable_model_init_.py -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\morphable_model
running egg_info
writing insightface.egg-info\PKG-INFO
writing dependency_links to insightface.egg-info\dependency_links.txt
writing entry points to insightface.egg-info\entry_points.txt
writing requirements to insightface.egg-info\requires.txt
writing top-level names to insightface.egg-info\top_level.txt
reading manifest file 'insightface.egg-info\SOURCES.txt'
writing manifest file 'insightface.egg-info\SOURCES.txt'
K:\StableDiffusion\sdwebui\py310\lib\site-packages\setuptools\command\build_py.py:202: SetuptoolsDeprecationWarning: Installing 'insightface.thirdparty.face3d.mesh.cython' as data is deprecated, please list it in packages.
!!

      ############################
      # Package would be ignored #
      ############################
      Python recognizes 'insightface.thirdparty.face3d.mesh.cython' as an importable package,
      but it is not listed in the `packages` configuration of setuptools.

      'insightface.thirdparty.face3d.mesh.cython' has been automatically added to the distribution only
      because it may contain data files, but this behavior is likely to change
      in future versions of setuptools (and therefore is considered deprecated).

      Please make sure that 'insightface.thirdparty.face3d.mesh.cython' is included as a package by using
      the `packages` configuration field or the proper discovery methods
      (for example by using `find_namespace_packages(...)`/`find_namespace:`
      instead of `find_packages(...)`/`find:`).

      You can read more about "package discovery" and "data files" on setuptools
      documentation page.


  !!

    check.warn(importable)
  K:\StableDiffusion\sdwebui\py310\lib\site-packages\setuptools\command\build_py.py:202: SetuptoolsDeprecationWarning:     Installing 'insightface.data.images' as data is deprecated, please list it in `packages`.
      !!


      ############################
      # Package would be ignored #
      ############################
      Python recognizes 'insightface.data.images' as an importable package,
      but it is not listed in the `packages` configuration of setuptools.

      'insightface.data.images' has been automatically added to the distribution only
      because it may contain data files, but this behavior is likely to change
      in future versions of setuptools (and therefore is considered deprecated).

      Please make sure that 'insightface.data.images' is included as a package by using
      the `packages` configuration field or the proper discovery methods
      (for example by using `find_namespace_packages(...)`/`find_namespace:`
      instead of `find_packages(...)`/`find:`).

      You can read more about "package discovery" and "data files" on setuptools
      documentation page.


  !!

    check.warn(importable)
  K:\StableDiffusion\sdwebui\py310\lib\site-packages\setuptools\command\build_py.py:202: SetuptoolsDeprecationWarning:     Installing 'insightface.data.objects' as data is deprecated, please list it in `packages`.
      !!


      ############################
      # Package would be ignored #
      ############################
      Python recognizes 'insightface.data.objects' as an importable package,
      but it is not listed in the `packages` configuration of setuptools.

      'insightface.data.objects' has been automatically added to the distribution only
      because it may contain data files, but this behavior is likely to change
      in future versions of setuptools (and therefore is considered deprecated).

      Please make sure that 'insightface.data.objects' is included as a package by using
      the `packages` configuration field or the proper discovery methods
      (for example by using `find_namespace_packages(...)`/`find_namespace:`
      instead of `find_packages(...)`/`find:`).

      You can read more about "package discovery" and "data files" on setuptools
      documentation page.


  !!

    check.warn(importable)
  creating build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh\cython
  copying insightface\thirdparty\face3d\mesh\cython\mesh_core.cpp -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh\cython
  copying insightface\thirdparty\face3d\mesh\cython\mesh_core_cython.cpp -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh\cython
  creating build\lib.win-amd64-cpython-310\insightface\data\images
  copying insightface\data\images\Tom_Hanks_54745.png -> build\lib.win-amd64-cpython-310\insightface\data\images
  copying insightface\data\images\mask_black.jpg -> build\lib.win-amd64-cpython-310\insightface\data\images
  copying insightface\data\images\mask_blue.jpg -> build\lib.win-amd64-cpython-310\insightface\data\images
  copying insightface\data\images\mask_green.jpg -> build\lib.win-amd64-cpython-310\insightface\data\images
  copying insightface\data\images\mask_white.jpg -> build\lib.win-amd64-cpython-310\insightface\data\images
  copying insightface\data\images\t1.jpg -> build\lib.win-amd64-cpython-310\insightface\data\images
  creating build\lib.win-amd64-cpython-310\insightface\data\objects
  copying insightface\data\objects\meanshape_68.pkl -> build\lib.win-amd64-cpython-310\insightface\data\objects
  copying insightface\thirdparty\face3d\mesh\cython\mesh_core.h -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh\cython
  copying insightface\thirdparty\face3d\mesh\cython\mesh_core_cython.c -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh\cython
  copying insightface\thirdparty\face3d\mesh\cython\mesh_core_cython.pyx -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh\cython
  copying insightface\thirdparty\face3d\mesh\cython\setup.py -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh\cython
  running build_ext
  building 'insightface.thirdparty.face3d.mesh.cython.mesh_core_cython' extension
  creating build\temp.win-amd64-cpython-310
  creating build\temp.win-amd64-cpython-310\Release
  creating build\temp.win-amd64-cpython-310\Release\insightface
  creating build\temp.win-amd64-cpython-310\Release\insightface\thirdparty
  creating build\temp.win-amd64-cpython-310\Release\insightface\thirdparty\face3d
  creating build\temp.win-amd64-cpython-310\Release\insightface\thirdparty\face3d\mesh
  creating build\temp.win-amd64-cpython-310\Release\insightface\thirdparty\face3d\mesh\cython
  K:\VR\visualstudio2022\Community\VC\Tools\MSVC\14.36.32532\bin\HostX86\x64\cl.exe /c /nologo /O2 /W3 /GL /DNDEBUG /MD -Iinsightface/thirdparty/face3d/mesh/cython -IK:\StableDiffusion\sdwebui\py310\lib\site-packages\numpy\core\include -IK:\StableDiffusion\sdwebui\py310\include -IK:\StableDiffusion\sdwebui\py310\Include -IK:\VR\visualstudio2022\Community\VC\Tools\MSVC\14.36.32532\include -IK:\VR\visualstudio2022\Community\VC\Tools\MSVC\14.36.32532\ATLMFC\include -IK:\VR\visualstudio2022\Community\VC\Auxiliary\VS\include -IK:\VR\visualstudio2022\Community\VC\Tools\MSVC\14.36.32532\include "-IK:\Windows Kits\10\Include\10.0.22000.0\cppwinrt" "-IK:\Windows Kits\10\Include\10.0.22000.0\shared" "-IK:\Windows Kits\10\Include\10.0.22000.0\ucrt" "-IK:\Windows Kits\10\Include\10.0.22000.0\um" "-IK:\Windows Kits\10\Include\10.0.22000.0\winrt" /EHsc /Tpinsightface/thirdparty/face3d/mesh/cython/mesh_core.cpp /Fobuild\temp.win-amd64-cpython-310\Release\insightface/thirdparty/face3d/mesh/cython/mesh_core.obj
  mesh_core.cpp
  insightface/thirdparty/face3d/mesh/cython/mesh_core.cpp(147): warning C4244: “=”: 从“int”转换到“float”,可能丢失数据
  insightface/thirdparty/face3d/mesh/cython/mesh_core.cpp(147): warning C4244: “=”: 从“int”转换到“float”,可能丢失数据
  insightface/thirdparty/face3d/mesh/cython/mesh_core.cpp(210): warning C4244: “=”: 从“int”转换到“float”,可能丢失数据
  insightface/thirdparty/face3d/mesh/cython/mesh_core.cpp(210): warning C4244: “=”: 从“int”转换到“float”,可能丢失数据
  insightface/thirdparty/face3d/mesh/cython/mesh_core.cpp(294): warning C4244: “=”: 从“int”转换到“float”,可能丢失数据
  insightface/thirdparty/face3d/mesh/cython/mesh_core.cpp(294): warning C4244: “=”: 从“int”转换到“float”,可能丢失数据
  K:\VR\visualstudio2022\Community\VC\Tools\MSVC\14.36.32532\bin\HostX86\x64\cl.exe /c /nologo /O2 /W3 /GL /DNDEBUG /MD -Iinsightface/thirdparty/face3d/mesh/cython -IK:\StableDiffusion\sdwebui\py310\lib\site-packages\numpy\core\include -IK:\StableDiffusion\sdwebui\py310\include -IK:\StableDiffusion\sdwebui\py310\Include -IK:\VR\visualstudio2022\Community\VC\Tools\MSVC\14.36.32532\include -IK:\VR\visualstudio2022\Community\VC\Tools\MSVC\14.36.32532\ATLMFC\include -IK:\VR\visualstudio2022\Community\VC\Auxiliary\VS\include -IK:\VR\visualstudio2022\Community\VC\Tools\MSVC\14.36.32532\include "-IK:\Windows Kits\10\Include\10.0.22000.0\cppwinrt" "-IK:\Windows Kits\10\Include\10.0.22000.0\shared" "-IK:\Windows Kits\10\Include\10.0.22000.0\ucrt" "-IK:\Windows Kits\10\Include\10.0.22000.0\um" "-IK:\Windows Kits\10\Include\10.0.22000.0\winrt" /EHsc /Tpinsightface/thirdparty/face3d/mesh/cython/mesh_core_cython.cpp /Fobuild\temp.win-amd64-cpython-310\Release\insightface/thirdparty/face3d/mesh/cython/mesh_core_cython.obj
  mesh_core_cython.cpp
  K:\StableDiffusion\sdwebui\py310\lib\site-packages\numpy\core\include\numpy\npy_1_7_deprecated_api.h(14) : Warning Msg: Using deprecated NumPy API, disable it with #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
  K:\VR\visualstudio2022\Community\VC\Tools\MSVC\14.36.32532\bin\HostX86\x64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:K:\StableDiffusion\sdwebui\py310\libs /LIBPATH:K:\StableDiffusion\sdwebui\py310 /LIBPATH:K:\StableDiffusion\sdwebui\py310\PCbuild\amd64 /LIBPATH:K:\VR\visualstudio2022\Community\VC\Tools\MSVC\14.36.32532\ATLMFC\lib\x64 /LIBPATH:K:\VR\visualstudio2022\Community\VC\Tools\MSVC\14.36.32532\lib\x64 /LIBPATH:K:\VR\visualstudio2022\Community\VC\Tools\MSVC\14.36.32532\lib\x64 "/LIBPATH:K:\Windows Kits\10\Lib\10.0.22000.0\ucrt\x64" "/LIBPATH:K:\Windows Kits\10\Lib\10.0.22000.0\ucrt_enclave\x64" "/LIBPATH:K:\Windows Kits\10\Lib\10.0.22000.0\um\x64" /EXPORT:PyInit_mesh_core_cython build\temp.win-amd64-cpython-310\Release\insightface/thirdparty/face3d/mesh/cython/mesh_core.obj build\temp.win-amd64-cpython-310\Release\insightface/thirdparty/face3d/mesh/cython/mesh_core_cython.obj /OUT:build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh\cython\mesh_core_cython.cp310-win_amd64.pyd /IMPLIB:build\temp.win-amd64-cpython-310\Release\insightface/thirdparty/face3d/mesh/cython\mesh_core_cython.cp310-win_amd64.lib
    正在创建库 build\temp.win-amd64-cpython-310\Release\insightface/thirdparty/face3d/mesh/cython\mesh_core_cython.cp310-win_amd64.lib 和对象 build\temp.win-amd64-cpython-310\Release\insightface/thirdparty/face3d/mesh/cython\mesh_core_cython.cp310-win_amd64.exp
  正在生成代码
  已完成代码的生成
  LINK : fatal error LNK1158: 无法运行“rc.exe”
  error: command 'K:\\VR\\visualstudio2022\\Community\\VC\\Tools\\MSVC\\14.36.32532\\bin\\HostX86\\x64\\link.exe' failed with exit code 1158
@Z-zachary
Copy link

你解决了么

@coder3101
Copy link

coder3101 commented Jun 24, 2023

I am also getting similar error while installing this library on my Mac M2 running Mac OS Ventura 13.4.1

Building wheels for collected packages: insightface
  Building wheel for insightface (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for insightface (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [483 lines of output]
      WARNING: pandoc not enabled
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.macosx-13.2-arm64-cpython-311
      creating build/lib.macosx-13.2-arm64-cpython-311/insightface
      copying insightface/__init__.py -> build/lib.macosx-13.2-arm64-cpython-311/insightface
      creating build/lib.macosx-13.2-arm64-cpython-311/insightface/app
      copying insightface/app/__init__.py -> build/lib.macosx-13.2-arm64-cpython-311/insightface/app
      copying insightface/app/mask_renderer.py -> build/lib.macosx-13.2-arm64-cpython-311/insightface/app
      copying insightface/app/common.py -> build/lib.macosx-13.2-arm64-cpython-311/insightface/app
      copying insightface/app/face_analysis.py -> build/lib.macosx-13.2-arm64-cpython-311/insightface/app
      creating build/lib.macosx-13.2-arm64-cpython-311/insightface/utils
      copying insightface/utils/download.py -> build/lib.macosx-13.2-arm64-cpython-311/insightface/utils
      copying insightface/utils/filesystem.py -> build/lib.macosx-13.2-arm64-cpython-311/insightface/utils
      copying insightface/utils/__init__.py -> build/lib.macosx-13.2-arm64-cpython-311/insightface/utils
      copying insightface/utils/transform.py -> build/lib.macosx-13.2-arm64-cpython-311/insightface/utils
      copying insightface/utils/storage.py -> build/lib.macosx-13.2-arm64-cpython-311/insightface/utils
      copying insightface/utils/face_align.py -> build/lib.macosx-13.2-arm64-cpython-311/insightface/utils
      copying insightface/utils/constant.py -> build/lib.macosx-13.2-arm64-cpython-311/insightface/utils
      creating build/lib.macosx-13.2-arm64-cpython-311/insightface/model_zoo
      copying insightface/model_zoo/landmark.py -> build/lib.macosx-13.2-arm64-cpython-311/insightface/model_zoo
      copying insightface/model_zoo/inswapper.py -> build/lib.macosx-13.2-arm64-cpython-311/insightface/model_zoo
      copying insightface/model_zoo/arcface_onnx.py -> build/lib.macosx-13.2-arm64-cpython-311/insightface/model_zoo
      copying insightface/model_zoo/retinaface.py -> build/lib.macosx-13.2-arm64-cpython-311/insightface/model_zoo
      copying insightface/model_zoo/attribute.py -> build/lib.macosx-13.2-arm64-cpython-311/insightface/model_zoo
      copying insightface/model_zoo/model_zoo.py -> build/lib.macosx-13.2-arm64-cpython-311/insightface/model_zoo
      copying insightface/model_zoo/scrfd.py -> build/lib.macosx-13.2-arm64-cpython-311/insightface/model_zoo
      copying insightface/model_zoo/__init__.py -> build/lib.macosx-13.2-arm64-cpython-311/insightface/model_zoo
      copying insightface/model_zoo/model_store.py -> build/lib.macosx-13.2-arm64-cpython-311/insightface/model_zoo
      creating build/lib.macosx-13.2-arm64-cpython-311/insightface/commands
      copying insightface/commands/insightface_cli.py -> build/lib.macosx-13.2-arm64-cpython-311/insightface/commands
      copying insightface/commands/rec_add_mask_param.py -> build/lib.macosx-13.2-arm64-cpython-311/insightface/commands
      copying insightface/commands/__init__.py -> build/lib.macosx-13.2-arm64-cpython-311/insightface/commands
      copying insightface/commands/model_download.py -> build/lib.macosx-13.2-arm64-cpython-311/insightface/commands
      creating build/lib.macosx-13.2-arm64-cpython-311/insightface/data
      copying insightface/data/__init__.py -> build/lib.macosx-13.2-arm64-cpython-311/insightface/data
      copying insightface/data/rec_builder.py -> build/lib.macosx-13.2-arm64-cpython-311/insightface/data
      copying insightface/data/pickle_object.py -> build/lib.macosx-13.2-arm64-cpython-311/insightface/data
      copying insightface/data/image.py -> build/lib.macosx-13.2-arm64-cpython-311/insightface/data
      creating build/lib.macosx-13.2-arm64-cpython-311/insightface/thirdparty
      copying insightface/thirdparty/__init__.py -> build/lib.macosx-13.2-arm64-cpython-311/insightface/thirdparty
      creating build/lib.macosx-13.2-arm64-cpython-311/insightface/thirdparty/face3d
      copying insightface/thirdparty/face3d/__init__.py -> build/lib.macosx-13.2-arm64-cpython-311/insightface/thirdparty/face3d
      creating build/lib.macosx-13.2-arm64-cpython-311/insightface/thirdparty/face3d/mesh
      copying insightface/thirdparty/face3d/mesh/light.py -> build/lib.macosx-13.2-arm64-cpython-311/insightface/thirdparty/face3d/mesh
      copying insightface/thirdparty/face3d/mesh/render.py -> build/lib.macosx-13.2-arm64-cpython-311/insightface/thirdparty/face3d/mesh
      copying insightface/thirdparty/face3d/mesh/io.py -> build/lib.macosx-13.2-arm64-cpython-311/insightface/thirdparty/face3d/mesh
      copying insightface/thirdparty/face3d/mesh/__init__.py -> build/lib.macosx-13.2-arm64-cpython-311/insightface/thirdparty/face3d/mesh
      copying insightface/thirdparty/face3d/mesh/vis.py -> build/lib.macosx-13.2-arm64-cpython-311/insightface/thirdparty/face3d/mesh
      copying insightface/thirdparty/face3d/mesh/transform.py -> build/lib.macosx-13.2-arm64-cpython-311/insightface/thirdparty/face3d/mesh
      creating build/lib.macosx-13.2-arm64-cpython-311/insightface/thirdparty/face3d/mesh_numpy
      copying insightface/thirdparty/face3d/mesh_numpy/light.py -> build/lib.macosx-13.2-arm64-cpython-311/insightface/thirdparty/face3d/mesh_numpy
      copying insightface/thirdparty/face3d/mesh_numpy/render.py -> build/lib.macosx-13.2-arm64-cpython-311/insightface/thirdparty/face3d/mesh_numpy
      copying insightface/thirdparty/face3d/mesh_numpy/io.py -> build/lib.macosx-13.2-arm64-cpython-311/insightface/thirdparty/face3d/mesh_numpy
      copying insightface/thirdparty/face3d/mesh_numpy/__init__.py -> build/lib.macosx-13.2-arm64-cpython-311/insightface/thirdparty/face3d/mesh_numpy
      copying insightface/thirdparty/face3d/mesh_numpy/vis.py -> build/lib.macosx-13.2-arm64-cpython-311/insightface/thirdparty/face3d/mesh_numpy
      copying insightface/thirdparty/face3d/mesh_numpy/transform.py -> build/lib.macosx-13.2-arm64-cpython-311/insightface/thirdparty/face3d/mesh_numpy
      creating build/lib.macosx-13.2-arm64-cpython-311/insightface/thirdparty/face3d/morphable_model
      copying insightface/thirdparty/face3d/morphable_model/morphabel_model.py -> build/lib.macosx-13.2-arm64-cpython-311/insightface/thirdparty/face3d/morphable_model
      copying insightface/thirdparty/face3d/morphable_model/fit.py -> build/lib.macosx-13.2-arm64-cpython-311/insightface/thirdparty/face3d/morphable_model
      copying insightface/thirdparty/face3d/morphable_model/__init__.py -> build/lib.macosx-13.2-arm64-cpython-311/insightface/thirdparty/face3d/morphable_model
      copying insightface/thirdparty/face3d/morphable_model/load.py -> build/lib.macosx-13.2-arm64-cpython-311/insightface/thirdparty/face3d/morphable_model
      running egg_info
      writing insightface.egg-info/PKG-INFO
      writing dependency_links to insightface.egg-info/dependency_links.txt
      writing entry points to insightface.egg-info/entry_points.txt
      writing requirements to insightface.egg-info/requires.txt
      writing top-level names to insightface.egg-info/top_level.txt
      reading manifest file 'insightface.egg-info/SOURCES.txt'
      writing manifest file 'insightface.egg-info/SOURCES.txt'
      /private/var/folders/lj/jbkwzz212q343623kls8sn440000gn/T/pip-build-env-mixxsb7q/overlay/lib/python3.11/site-packages/setuptools/command/build_py.py:201: _Warning: Package 'insightface.data.images' is absent from the `packages` configuration.
      !!

              ********************************************************************************
              ############################
              # Package would be ignored #
              ############################
              Python recognizes 'insightface.data.images' as an importable package[^1],
              but it is absent from setuptools' `packages` configuration.

              This leads to an ambiguous overall configuration. If you want to distribute this
              package, please make sure that 'insightface.data.images' is explicitly added
              to the `packages` configuration field.

              Alternatively, you can also rely on setuptools' discovery methods
              (for example by using `find_namespace_packages(...)`/`find_namespace:`
              instead of `find_packages(...)`/`find:`).

              You can read more about "package discovery" on setuptools documentation page:

              - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html

              If you don't want 'insightface.data.images' to be distributed and are
              already explicitly excluding 'insightface.data.images' via
              `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
              you can try to use `exclude_package_data`, or `include-package-data=False` in
              combination with a more fine grained `package-data` configuration.

              You can read more about "package data files" on setuptools documentation page:

              - https://setuptools.pypa.io/en/latest/userguide/datafiles.html


              [^1]: For Python, any directory (with suitable naming) can be imported,
                    even if it does not contain any `.py` files.
                    On the other hand, currently there is no concept of package data
                    directory, all directories are treated like packages.
              ********************************************************************************

      !!
        check.warn(importable)
      /private/var/folders/lj/jbkwzz212q343623kls8sn440000gn/T/pip-build-env-mixxsb7q/overlay/lib/python3.11/site-packages/setuptools/command/build_py.py:201: _Warning: Package 'insightface.data.objects' is absent from the `packages` configuration.
      !!

              ********************************************************************************
              ############################
              # Package would be ignored #
              ############################
              Python recognizes 'insightface.data.objects' as an importable package[^1],
              but it is absent from setuptools' `packages` configuration.

              This leads to an ambiguous overall configuration. If you want to distribute this
              package, please make sure that 'insightface.data.objects' is explicitly added
              to the `packages` configuration field.

              Alternatively, you can also rely on setuptools' discovery methods
              (for example by using `find_namespace_packages(...)`/`find_namespace:`
              instead of `find_packages(...)`/`find:`).

              You can read more about "package discovery" on setuptools documentation page:

              - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html

              If you don't want 'insightface.data.objects' to be distributed and are
              already explicitly excluding 'insightface.data.objects' via
              `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
              you can try to use `exclude_package_data`, or `include-package-data=False` in
              combination with a more fine grained `package-data` configuration.

              You can read more about "package data files" on setuptools documentation page:

              - https://setuptools.pypa.io/en/latest/userguide/datafiles.html


              [^1]: For Python, any directory (with suitable naming) can be imported,
                    even if it does not contain any `.py` files.
                    On the other hand, currently there is no concept of package data
                    directory, all directories are treated like packages.
              ********************************************************************************

      !!
        check.warn(importable)
      /private/var/folders/lj/jbkwzz212q343623kls8sn440000gn/T/pip-build-env-mixxsb7q/overlay/lib/python3.11/site-packages/setuptools/command/build_py.py:201: _Warning: Package 'insightface.thirdparty.face3d.mesh.cython' is absent from the `packages` configuration.
      !!

              ********************************************************************************
              ############################
              # Package would be ignored #
              ############################
              Python recognizes 'insightface.thirdparty.face3d.mesh.cython' as an importable package[^1],
              but it is absent from setuptools' `packages` configuration.

              This leads to an ambiguous overall configuration. If you want to distribute this
              package, please make sure that 'insightface.thirdparty.face3d.mesh.cython' is explicitly added
              to the `packages` configuration field.

              Alternatively, you can also rely on setuptools' discovery methods
              (for example by using `find_namespace_packages(...)`/`find_namespace:`
              instead of `find_packages(...)`/`find:`).

              You can read more about "package discovery" on setuptools documentation page:

              - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html

              If you don't want 'insightface.thirdparty.face3d.mesh.cython' to be distributed and are
              already explicitly excluding 'insightface.thirdparty.face3d.mesh.cython' via
              `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
              you can try to use `exclude_package_data`, or `include-package-data=False` in
              combination with a more fine grained `package-data` configuration.

              You can read more about "package data files" on setuptools documentation page:

              - https://setuptools.pypa.io/en/latest/userguide/datafiles.html


              [^1]: For Python, any directory (with suitable naming) can be imported,
                    even if it does not contain any `.py` files.
                    On the other hand, currently there is no concept of package data
                    directory, all directories are treated like packages.
              ********************************************************************************

      !!
        check.warn(importable)
      creating build/lib.macosx-13.2-arm64-cpython-311/insightface/data/images
      copying insightface/data/images/Tom_Hanks_54745.png -> build/lib.macosx-13.2-arm64-cpython-311/insightface/data/images
      copying insightface/data/images/mask_black.jpg -> build/lib.macosx-13.2-arm64-cpython-311/insightface/data/images
      copying insightface/data/images/mask_blue.jpg -> build/lib.macosx-13.2-arm64-cpython-311/insightface/data/images
      copying insightface/data/images/mask_green.jpg -> build/lib.macosx-13.2-arm64-cpython-311/insightface/data/images
      copying insightface/data/images/mask_white.jpg -> build/lib.macosx-13.2-arm64-cpython-311/insightface/data/images
      copying insightface/data/images/t1.jpg -> build/lib.macosx-13.2-arm64-cpython-311/insightface/data/images
      creating build/lib.macosx-13.2-arm64-cpython-311/insightface/data/objects
      copying insightface/data/objects/meanshape_68.pkl -> build/lib.macosx-13.2-arm64-cpython-311/insightface/data/objects
      creating build/lib.macosx-13.2-arm64-cpython-311/insightface/thirdparty/face3d/mesh/cython
      copying insightface/thirdparty/face3d/mesh/cython/mesh_core.cpp -> build/lib.macosx-13.2-arm64-cpython-311/insightface/thirdparty/face3d/mesh/cython
      copying insightface/thirdparty/face3d/mesh/cython/mesh_core.h -> build/lib.macosx-13.2-arm64-cpython-311/insightface/thirdparty/face3d/mesh/cython
      copying insightface/thirdparty/face3d/mesh/cython/mesh_core_cython.c -> build/lib.macosx-13.2-arm64-cpython-311/insightface/thirdparty/face3d/mesh/cython
      copying insightface/thirdparty/face3d/mesh/cython/mesh_core_cython.cpp -> build/lib.macosx-13.2-arm64-cpython-311/insightface/thirdparty/face3d/mesh/cython
      copying insightface/thirdparty/face3d/mesh/cython/mesh_core_cython.pyx -> build/lib.macosx-13.2-arm64-cpython-311/insightface/thirdparty/face3d/mesh/cython
      copying insightface/thirdparty/face3d/mesh/cython/setup.py -> build/lib.macosx-13.2-arm64-cpython-311/insightface/thirdparty/face3d/mesh/cython
      running build_ext
      building 'insightface.thirdparty.face3d.mesh.cython.mesh_core_cython' extension
      creating build/temp.macosx-13.2-arm64-cpython-311
      creating build/temp.macosx-13.2-arm64-cpython-311/insightface
      creating build/temp.macosx-13.2-arm64-cpython-311/insightface/thirdparty
      creating build/temp.macosx-13.2-arm64-cpython-311/insightface/thirdparty/face3d
      creating build/temp.macosx-13.2-arm64-cpython-311/insightface/thirdparty/face3d/mesh
      creating build/temp.macosx-13.2-arm64-cpython-311/insightface/thirdparty/face3d/mesh/cython
      clang -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include -Iinsightface/thirdparty/face3d/mesh/cython -I/private/var/folders/lj/jbkwzz212q343623kls8sn440000gn/T/pip-build-env-mixxsb7q/overlay/lib/python3.11/site-packages/numpy/core/include -I/Users/ashar/.pyenv/versions/3.11.2/include/python3.11 -c insightface/thirdparty/face3d/mesh/cython/mesh_core.cpp -o build/temp.macosx-13.2-arm64-cpython-311/insightface/thirdparty/face3d/mesh/cython/mesh_core.o
      In file included from insightface/thirdparty/face3d/mesh/cython/mesh_core.cpp:11:
      In file included from insightface/thirdparty/face3d/mesh/cython/mesh_core.h:4:
      In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:64:
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_stdio.h:93:16: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
              unsigned char   *_base;
                              ^
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_stdio.h:93:16: note: insert '_Nullable' if the pointer may be null
              unsigned char   *_base;
                              ^
                                _Nullable
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_stdio.h:93:16: note: insert '_Nonnull' if the pointer should never be null
              unsigned char   *_base;
                              ^
                                _Nonnull
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_stdio.h:138:32: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
              int     (* _Nullable _read) (void *, char *, int);
                                                ^
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_stdio.h:138:32: note: insert '_Nullable' if the pointer may be null
              int     (* _Nullable _read) (void *, char *, int);
                                                ^
                                                 _Nullable
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_stdio.h:138:32: note: insert '_Nonnull' if the pointer should never be null
              int     (* _Nullable _read) (void *, char *, int);
                                                ^
                                                 _Nonnull
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_stdio.h:138:40: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
              int     (* _Nullable _read) (void *, char *, int);
                                                        ^
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_stdio.h:138:40: note: insert '_Nullable' if the pointer may be null
              int     (* _Nullable _read) (void *, char *, int);
                                                        ^
                                                         _Nullable
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_stdio.h:138:40: note: insert '_Nonnull' if the pointer should never be null
              int     (* _Nullable _read) (void *, char *, int);
                                                        ^
                                                         _Nonnull
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_stdio.h:139:35: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
              fpos_t  (* _Nullable _seek) (void *, fpos_t, int);
                                                ^
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_stdio.h:139:35: note: insert '_Nullable' if the pointer may be null
              fpos_t  (* _Nullable _seek) (void *, fpos_t, int);
                                                ^
                                                 _Nullable
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_stdio.h:139:35: note: insert '_Nonnull' if the pointer should never be null
              fpos_t  (* _Nullable _seek) (void *, fpos_t, int);
                                                ^
                                                 _Nonnull
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_stdio.h:140:32: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
              int     (* _Nullable _write)(void *, const char *, int);
                                                ^
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_stdio.h:140:32: note: insert '_Nullable' if the pointer may be null
              int     (* _Nullable _write)(void *, const char *, int);
                                                ^
                                                 _Nullable
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_stdio.h:140:32: note: insert '_Nonnull' if the pointer should never be null
              int     (* _Nullable _write)(void *, const char *, int);
                                                ^
                                                 _Nonnull
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_stdio.h:140:46: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
              int     (* _Nullable _write)(void *, const char *, int);
                                                              ^
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_stdio.h:140:46: note: insert '_Nullable' if the pointer may be null
              int     (* _Nullable _write)(void *, const char *, int);
                                                              ^
                                                               _Nullable
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_stdio.h:140:46: note: insert '_Nonnull' if the pointer should never be null
              int     (* _Nullable _write)(void *, const char *, int);
                                                              ^
                                                               _Nonnull
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_stdio.h:144:18: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
              struct __sFILEX *_extra; /* additions to FILE to not break ABI */
                              ^
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_stdio.h:144:18: note: insert '_Nullable' if the pointer may be null
              struct __sFILEX *_extra; /* additions to FILE to not break ABI */
                              ^
                                _Nullable
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_stdio.h:144:18: note: insert '_Nonnull' if the pointer should never be null
              struct __sFILEX *_extra; /* additions to FILE to not break ABI */
                              ^
                                _Nonnull
      In file included from insightface/thirdparty/face3d/mesh/cython/mesh_core.cpp:11:
      In file included from insightface/thirdparty/face3d/mesh/cython/mesh_core.h:4:
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:67:13: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
      extern FILE *__stdinp;
                  ^
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:67:13: note: insert '_Nullable' if the pointer may be null
      extern FILE *__stdinp;
                  ^
                    _Nullable
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:67:13: note: insert '_Nonnull' if the pointer should never be null
      extern FILE *__stdinp;
                  ^
                    _Nonnull
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:395:41: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
                       int (* _Nullable)(void *, const char *, int),
                                              ^
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:395:41: note: insert '_Nullable' if the pointer may be null
                       int (* _Nullable)(void *, const char *, int),
                                              ^
                                               _Nullable
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:395:41: note: insert '_Nonnull' if the pointer should never be null
                       int (* _Nullable)(void *, const char *, int),
                                              ^
                                               _Nonnull
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:395:55: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
                       int (* _Nullable)(void *, const char *, int),
                                                            ^
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:395:55: note: insert '_Nullable' if the pointer may be null
                       int (* _Nullable)(void *, const char *, int),
                                                            ^
                                                             _Nullable
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:395:55: note: insert '_Nonnull' if the pointer should never be null
                       int (* _Nullable)(void *, const char *, int),
                                                            ^
                                                             _Nonnull
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:396:44: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
                       fpos_t (* _Nullable)(void *, fpos_t, int),
                                                 ^
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:396:44: note: insert '_Nullable' if the pointer may be null
                       fpos_t (* _Nullable)(void *, fpos_t, int),
                                                 ^
                                                  _Nullable
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:396:44: note: insert '_Nonnull' if the pointer should never be null
                       fpos_t (* _Nullable)(void *, fpos_t, int),
                                                 ^
                                                  _Nonnull
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:397:41: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
                       int (* _Nullable)(void *));
                                              ^
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:397:41: note: insert '_Nullable' if the pointer may be null
                       int (* _Nullable)(void *));
                                              ^
                                               _Nullable
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:397:41: note: insert '_Nonnull' if the pointer should never be null
                       int (* _Nullable)(void *));
                                              ^
                                               _Nonnull
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:393:6: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
      FILE    *funopen(const void *,
              ^
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:393:6: note: insert '_Nullable' if the pointer may be null
      FILE    *funopen(const void *,
              ^
                _Nullable
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:393:6: note: insert '_Nonnull' if the pointer should never be null
      FILE    *funopen(const void *,
              ^
                _Nonnull
      In file included from insightface/thirdparty/face3d/mesh/cython/mesh_core.cpp:11:
      In file included from insightface/thirdparty/face3d/mesh/cython/mesh_core.h:5:
      In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:310:
      In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/type_traits:421:
      In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__functional/invoke.h:15:
      In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__type_traits/apply_cv.h:16:
      In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__type_traits/remove_reference.h:13:
      /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cstddef:50:9: error: no member named 'nullptr_t' in the global namespace
      using ::nullptr_t;
            ~~^
      In file included from insightface/thirdparty/face3d/mesh/cython/mesh_core.cpp:11:
      In file included from insightface/thirdparty/face3d/mesh/cython/mesh_core.h:5:
      In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:310:
      In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/type_traits:452:
      In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__type_traits/is_compound.h:14:
      In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__type_traits/is_fundamental.h:14:
      /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__type_traits/is_null_pointer.h:24:49: error: use of undeclared identifier 'nullptr_t'
      template <>          struct __is_nullptr_t_impl<nullptr_t> : public true_type {};
                                                      ^
      In file included from insightface/thirdparty/face3d/mesh/cython/mesh_core.cpp:11:
      In file included from insightface/thirdparty/face3d/mesh/cython/mesh_core.h:6:
      In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/algorithm:1712:
      In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/memory:841:
      In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__algorithm/copy.h:13:
      In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__algorithm/unwrap_range.h:16:
      In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__iterator/next.h:15:
      In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__iterator/advance.h:19:
      In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__utility/unreachable.h:13:
      /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cstdlib:123:9: error: target of using declaration conflicts with declaration already in scope
      using ::abs _LIBCPP_USING_IF_EXISTS;
              ^
      /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:132:6: note: target of using declaration
      int      abs(int) __pure2;
               ^
      /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:339:1: note: conflicting declaration
      using ::abs _LIBCPP_USING_IF_EXISTS;
      ^
      In file included from insightface/thirdparty/face3d/mesh/cython/mesh_core.cpp:11:
      In file included from insightface/thirdparty/face3d/mesh/cython/mesh_core.h:6:
      In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/algorithm:1712:
      In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/memory:848:
      In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/allocator.h:18:
      In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/new:94:
      /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/exception:149:45: error: field has incomplete type 'std::exception_ptr'
          _LIBCPP_INLINE_VISIBILITY exception_ptr(nullptr_t) _NOEXCEPT : __ptr_() {}
                                                  ^
      /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/exception:144:24: note: definition of 'std::exception_ptr' is not complete until the closing '}'
      class _LIBCPP_TYPE_VIS exception_ptr
                             ^
      /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/exception:149:5: error: '__abi_tag__' attribute only applies to structs, variables, functions, and namespaces
          _LIBCPP_INLINE_VISIBILITY exception_ptr(nullptr_t) _NOEXCEPT : __ptr_() {}
          ^
      /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__config:689:37: note: expanded from macro '_LIBCPP_INLINE_VISIBILITY'
      #  define _LIBCPP_INLINE_VISIBILITY _LIBCPP_HIDE_FROM_ABI
                                          ^
      /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__config:673:26: note: expanded from macro '_LIBCPP_HIDE_FROM_ABI'
                __attribute__((__abi_tag__(_LIBCPP_TOSTRING(_LIBCPP_VERSIONED_IDENTIFIER))))
                               ^
      In file included from insightface/thirdparty/face3d/mesh/cython/mesh_core.cpp:11:
      In file included from insightface/thirdparty/face3d/mesh/cython/mesh_core.h:6:
      In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/algorithm:1712:
      In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/memory:848:
      In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/allocator.h:18:
      In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/new:94:
      /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/exception:149:55: error: expected ';' at end of declaration list
          _LIBCPP_INLINE_VISIBILITY exception_ptr(nullptr_t) _NOEXCEPT : __ptr_() {}
                                                            ^
      In file included from insightface/thirdparty/face3d/mesh/cython/mesh_core.cpp:11:
      In file included from insightface/thirdparty/face3d/mesh/cython/mesh_core.h:6:
      In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/algorithm:1712:
      In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/memory:860:
      In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/shared_ptr.h:28:
      /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/unique_ptr.h:173:32: error: member 'nullptr_t' declared as a template
        _LIBCPP_CONSTEXPR unique_ptr(nullptr_t) _NOEXCEPT : __ptr_(__value_init_tag(), __value_init_tag()) {}
                                     ^
      /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/unique_ptr.h:173:42: error: expected ';' at end of declaration list
        _LIBCPP_CONSTEXPR unique_ptr(nullptr_t) _NOEXCEPT : __ptr_(__value_init_tag(), __value_init_tag()) {}
                                               ^
      /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/unique_ptr.h:262:25: error: unknown type name 'nullptr_t'
        unique_ptr& operator=(nullptr_t) _NOEXCEPT {
                              ^
      /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/unique_ptr.h:395:32: error: member 'nullptr_t' declared as a template
        _LIBCPP_CONSTEXPR unique_ptr(nullptr_t) _NOEXCEPT : __ptr_(__value_init_tag(), __value_init_tag()) {}
                                     ^
      /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/unique_ptr.h:395:42: error: expected ';' at end of declaration list
        _LIBCPP_CONSTEXPR unique_ptr(nullptr_t) _NOEXCEPT : __ptr_(__value_init_tag(), __value_init_tag()) {}
                                               ^
      /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/unique_ptr.h:484:25: error: unknown type name 'nullptr_t'
        unique_ptr& operator=(nullptr_t) _NOEXCEPT {
                              ^
      /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/unique_ptr.h:533:14: error: unknown type name 'nullptr_t'
        void reset(nullptr_t = nullptr) _NOEXCEPT {
                   ^
      /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/unique_ptr.h:533:24: error: cannot initialize a parameter of type 'int' with an rvalue of type 'std::nullptr_t'
        void reset(nullptr_t = nullptr) _NOEXCEPT {
                             ^ ~~~~~~~
      /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/unique_ptr.h:533:24: note: passing argument to parameter here
      /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/unique_ptr.h:594:45: error: unknown type name 'nullptr_t'
      operator==(const unique_ptr<_T1, _D1>& __x, nullptr_t) _NOEXCEPT
                                                  ^
      /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/unique_ptr.h:602:12: error: unknown type name 'nullptr_t'
      operator==(nullptr_t, const unique_ptr<_T1, _D1>& __x) _NOEXCEPT
                 ^
      /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/unique_ptr.h:610:45: error: unknown type name 'nullptr_t'
      operator!=(const unique_ptr<_T1, _D1>& __x, nullptr_t) _NOEXCEPT
                                                  ^
      /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/unique_ptr.h:618:12: error: unknown type name 'nullptr_t'
      operator!=(nullptr_t, const unique_ptr<_T1, _D1>& __x) _NOEXCEPT
                 ^
      /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/unique_ptr.h:626:44: error: unknown type name 'nullptr_t'
      operator<(const unique_ptr<_T1, _D1>& __x, nullptr_t)
                                                 ^
      fatal error: too many errors emitted, stopping now [-ferror-limit=]
      13 warnings and 20 errors generated.
      error: command '/usr/bin/clang' failed with exit code 1
      [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

@coder3101
Copy link

I found that using python3.10 solved the issue

@stanleyssss
Copy link

similar error! Installed in Mac interCPU, Anaconda Environment, but could not pip install insightface, error message is :Could not build wheels for insightface, which is required to install pyproject.toml-based projects.

How to resolve it? I try python3.10.9, 3.10.11 and 3.11, but same error.

@FelixChristian011226
Copy link

Same as above. Using python 3.11.4.

@zdxpan
Copy link

zdxpan commented Jul 20, 2023

ipython 
import numpy 
numpy.get_include()

sudo cp -r /Users/xxxxxxxxxx/anaconda3/envs/sd/lib/python3.10/site-packages/numpy/core/include/numpy 
/usr/local/include

it perfectly solve this problem

@cgf120
Copy link

cgf120 commented Jul 31, 2023

macos M2:

pip uninstall insightface

git clone https://github.com/deepinsight/insightface.git

cd insightface

pip install -r requirements.txt

cd python-package

pip install -e .

that is ok

@evolink
Copy link

evolink commented Aug 1, 2023

macos M2:

pip uninstall insightface

git clone https://github.com/deepinsight/insightface.git

cd insightface

pip install -r requirements.txt

cd python-package

pip install -e .

that is ok

It helps

@smallchao
Copy link

windows 11:

pip uninstall insightface

git clone https://github.com/deepinsight/insightface.git

cd insightface

pip install -r requirements.txt

cd python-package

pip install -e .

it's not work.

@cgf120
Copy link

cgf120 commented Aug 4, 2023

@smallchao my machine is mac m2

@brunoguratti
Copy link

I had the same problem while trying to install insightface on Windows 11. You need to install Microsoft Build Tools (link: https://visualstudio.microsoft.com/visual-cpp-build-tools/)

Choose Desktop development with C++

And then select the following individual components:

Windows 11 SDK
C++ x64/x86 build tools

@s-marcelle
Copy link

I had the same problem while trying to install insightface on Windows 11. You need to install Microsoft Build Tools (link: https://visualstudio.microsoft.com/visual-cpp-build-tools/)

Choose Desktop development with C++

And then select the following individual components:

Windows 11 SDK C++ x64/x86 build tools

I tried this and it still didnt work

@swumagic swumagic closed this as completed Sep 7, 2023
@jacobneveraline
Copy link

I just cant solve this problem,bother me for a long time:(

@jlitz
Copy link

jlitz commented Sep 28, 2023

I just installed FaceFusion was getting same error followed this fix and worked
https://stackoverflow.com/questions/76739044/how-to-fix-this-issue-error-failed-building-wheel-for-insightface

@JustGui
Copy link

JustGui commented Oct 20, 2023

I had the same issue, it was fixed on Ubuntu 22.04 (WSL2 on Windows 11) by installing the dev version of python, for example apt install python3.10-dev
#2430 (comment)

@swingdoor
Copy link

I had the same issue, it was fixed on Ubuntu 22.04 (WSL2 on Windows 11) by installing the dev version of python, for example apt install python3.10-dev #2430 (comment)

it works on ubuntu20.04. 解决了

@Fireboar
Copy link

Fireboar commented Nov 7, 2023

@shitiandmw
Copy link

I encountered this issue on my Ubuntu 22, and it was resolved by using sudo apt-get install build-essential. I hope this is helpful for everyone.

@Mishmann
Copy link

I found that using python3.10 solved the issue

Not solved - I using Python 3.10.6.

@Richar618
Copy link

I was in a similar situation。

Building wheels for collected packages: insightface
Building wheel for insightface (pyproject.toml) ... error
error: subprocess-exited-with-error

× Building wheel for insightface (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [215 lines of output]
WARNING: pandoc not enabled
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-cpython-311
creating build\lib.win-amd64-cpython-311\insightface
copying insightface_init_.py -> build\lib.win-amd64-cpython-311\insightface
creating build\lib.win-amd64-cpython-311\insightface\app
copying insightface\app\common.py -> build\lib.win-amd64-cpython-311\insightface\app
copying insightface\app\face_analysis.py -> build\lib.win-amd64-cpython-311\insightface\app
copying insightface\app\mask_renderer.py -> build\lib.win-amd64-cpython-311\insightface\app
copying insightface\app_init_.py -> build\lib.win-amd64-cpython-311\insightface\app
creating build\lib.win-amd64-cpython-311\insightface\commands
copying insightface\commands\insightface_cli.py -> build\lib.win-amd64-cpython-311\insightface\commands
copying insightface\commands\model_download.py -> build\lib.win-amd64-cpython-311\insightface\commands
copying insightface\commands\rec_add_mask_param.py -> build\lib.win-amd64-cpython-311\insightface\commands
copying insightface\commands_init_.py -> build\lib.win-amd64-cpython-311\insightface\commands
creating build\lib.win-amd64-cpython-311\insightface\data
copying insightface\data\image.py -> build\lib.win-amd64-cpython-311\insightface\data
copying insightface\data\pickle_object.py -> build\lib.win-amd64-cpython-311\insightface\data
copying insightface\data\rec_builder.py -> build\lib.win-amd64-cpython-311\insightface\data
copying insightface\data_init_.py -> build\lib.win-amd64-cpython-311\insightface\data
creating build\lib.win-amd64-cpython-311\insightface\model_zoo
copying insightface\model_zoo\arcface_onnx.py -> build\lib.win-amd64-cpython-311\insightface\model_zoo
copying insightface\model_zoo\attribute.py -> build\lib.win-amd64-cpython-311\insightface\model_zoo
copying insightface\model_zoo\inswapper.py -> build\lib.win-amd64-cpython-311\insightface\model_zoo
copying insightface\model_zoo\landmark.py -> build\lib.win-amd64-cpython-311\insightface\model_zoo
copying insightface\model_zoo\model_store.py -> build\lib.win-amd64-cpython-311\insightface\model_zoo
copying insightface\model_zoo\model_zoo.py -> build\lib.win-amd64-cpython-311\insightface\model_zoo
copying insightface\model_zoo\retinaface.py -> build\lib.win-amd64-cpython-311\insightface\model_zoo
copying insightface\model_zoo\scrfd.py -> build\lib.win-amd64-cpython-311\insightface\model_zoo
copying insightface\model_zoo_init_.py -> build\lib.win-amd64-cpython-311\insightface\model_zoo
creating build\lib.win-amd64-cpython-311\insightface\thirdparty
copying insightface\thirdparty_init_.py -> build\lib.win-amd64-cpython-311\insightface\thirdparty
creating build\lib.win-amd64-cpython-311\insightface\utils
copying insightface\utils\constant.py -> build\lib.win-amd64-cpython-311\insightface\utils
copying insightface\utils\download.py -> build\lib.win-amd64-cpython-311\insightface\utils
copying insightface\utils\face_align.py -> build\lib.win-amd64-cpython-311\insightface\utils
copying insightface\utils\filesystem.py -> build\lib.win-amd64-cpython-311\insightface\utils
copying insightface\utils\storage.py -> build\lib.win-amd64-cpython-311\insightface\utils
copying insightface\utils\transform.py -> build\lib.win-amd64-cpython-311\insightface\utils
copying insightface\utils_init_.py -> build\lib.win-amd64-cpython-311\insightface\utils
creating build\lib.win-amd64-cpython-311\insightface\thirdparty\face3d
copying insightface\thirdparty\face3d_init_.py -> build\lib.win-amd64-cpython-311\insightface\thirdparty\face3d
creating build\lib.win-amd64-cpython-311\insightface\thirdparty\face3d\mesh
copying insightface\thirdparty\face3d\mesh\io.py -> build\lib.win-amd64-cpython-311\insightface\thirdparty\face3d\mesh
copying insightface\thirdparty\face3d\mesh\light.py -> build\lib.win-amd64-cpython-311\insightface\thirdparty\face3d\mesh
copying insightface\thirdparty\face3d\mesh\render.py -> build\lib.win-amd64-cpython-311\insightface\thirdparty\face3d\mesh
copying insightface\thirdparty\face3d\mesh\transform.py -> build\lib.win-amd64-cpython-311\insightface\thirdparty\face3d\mesh
copying insightface\thirdparty\face3d\mesh\vis.py -> build\lib.win-amd64-cpython-311\insightface\thirdparty\face3d\mesh
copying insightface\thirdparty\face3d\mesh_init_.py -> build\lib.win-amd64-cpython-311\insightface\thirdparty\face3d\mesh
creating build\lib.win-amd64-cpython-311\insightface\thirdparty\face3d\mesh_numpy
copying insightface\thirdparty\face3d\mesh_numpy\io.py -> build\lib.win-amd64-cpython-311\insightface\thirdparty\face3d\mesh_numpy
copying insightface\thirdparty\face3d\mesh_numpy\light.py -> build\lib.win-amd64-cpython-311\insightface\thirdparty\face3d\mesh_numpy
copying insightface\thirdparty\face3d\mesh_numpy\render.py -> build\lib.win-amd64-cpython-311\insightface\thirdparty\face3d\mesh_numpy
copying insightface\thirdparty\face3d\mesh_numpy\transform.py -> build\lib.win-amd64-cpython-311\insightface\thirdparty\face3d\mesh_numpy
copying insightface\thirdparty\face3d\mesh_numpy\vis.py -> build\lib.win-amd64-cpython-311\insightface\thirdparty\face3d\mesh_numpy
copying insightface\thirdparty\face3d\mesh_numpy_init_.py -> build\lib.win-amd64-cpython-311\insightface\thirdparty\face3d\mesh_numpy
creating build\lib.win-amd64-cpython-311\insightface\thirdparty\face3d\morphable_model
copying insightface\thirdparty\face3d\morphable_model\fit.py -> build\lib.win-amd64-cpython-311\insightface\thirdparty\face3d\morphable_model
copying insightface\thirdparty\face3d\morphable_model\load.py -> build\lib.win-amd64-cpython-311\insightface\thirdparty\face3d\morphable_model
copying insightface\thirdparty\face3d\morphable_model\morphabel_model.py -> build\lib.win-amd64-cpython-311\insightface\thirdparty\face3d\morphable_model
copying insightface\thirdparty\face3d\morphable_model_init_.py -> build\lib.win-amd64-cpython-311\insightface\thirdparty\face3d\morphable_model
running egg_info
writing insightface.egg-info\PKG-INFO
writing dependency_links to insightface.egg-info\dependency_links.txt
writing entry points to insightface.egg-info\entry_points.txt
writing requirements to insightface.egg-info\requires.txt
writing top-level names to insightface.egg-info\top_level.txt
reading manifest file 'insightface.egg-info\SOURCES.txt'
writing manifest file 'insightface.egg-info\SOURCES.txt'
C:\Users\mypro\AppData\Local\Temp\pip-build-env-zhp_bozl\overlay\Lib\site-packages\setuptools\command\build_py.py:207: _Warning: Package 'insightface.thirdparty.face3d.mesh.cython' is absent from the packages configuration.
!!

          ********************************************************************************
          ############################
          # Package would be ignored #
          ############################
          Python recognizes 'insightface.thirdparty.face3d.mesh.cython' as an importable package[^1],
          but it is absent from setuptools' `packages` configuration.

          This leads to an ambiguous overall configuration. If you want to distribute this
          package, please make sure that 'insightface.thirdparty.face3d.mesh.cython' is explicitly added
          to the `packages` configuration field.

          Alternatively, you can also rely on setuptools' discovery methods
          (for example by using `find_namespace_packages(...)`/`find_namespace:`
          instead of `find_packages(...)`/`find:`).

          You can read more about "package discovery" on setuptools documentation page:

          - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html

          If you don't want 'insightface.thirdparty.face3d.mesh.cython' to be distributed and are
          already explicitly excluding 'insightface.thirdparty.face3d.mesh.cython' via
          `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
          you can try to use `exclude_package_data`, or `include-package-data=False` in
          combination with a more fine grained `package-data` configuration.

          You can read more about "package data files" on setuptools documentation page:

          - https://setuptools.pypa.io/en/latest/userguide/datafiles.html


          [^1]: For Python, any directory (with suitable naming) can be imported,
                even if it does not contain any `.py` files.
                On the other hand, currently there is no concept of package data
                directory, all directories are treated like packages.
          ********************************************************************************

  !!
    check.warn(importable)
  C:\Users\mypro\AppData\Local\Temp\pip-build-env-zhp_bozl\overlay\Lib\site-packages\setuptools\command\build_py.py:207: _Warning: Package 'insightface.data.images' is absent from the `packages` configuration.
  !!

          ********************************************************************************
          ############################
          # Package would be ignored #
          ############################
          Python recognizes 'insightface.data.images' as an importable package[^1],
          but it is absent from setuptools' `packages` configuration.

          This leads to an ambiguous overall configuration. If you want to distribute this
          package, please make sure that 'insightface.data.images' is explicitly added
          to the `packages` configuration field.

          Alternatively, you can also rely on setuptools' discovery methods
          (for example by using `find_namespace_packages(...)`/`find_namespace:`
          instead of `find_packages(...)`/`find:`).

          You can read more about "package discovery" on setuptools documentation page:

          - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html

          If you don't want 'insightface.data.images' to be distributed and are
          already explicitly excluding 'insightface.data.images' via
          `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
          you can try to use `exclude_package_data`, or `include-package-data=False` in
          combination with a more fine grained `package-data` configuration.

          You can read more about "package data files" on setuptools documentation page:

          - https://setuptools.pypa.io/en/latest/userguide/datafiles.html


          [^1]: For Python, any directory (with suitable naming) can be imported,
                even if it does not contain any `.py` files.
                On the other hand, currently there is no concept of package data
                directory, all directories are treated like packages.
          ********************************************************************************

  !!
    check.warn(importable)
  C:\Users\mypro\AppData\Local\Temp\pip-build-env-zhp_bozl\overlay\Lib\site-packages\setuptools\command\build_py.py:207: _Warning: Package 'insightface.data.objects' is absent from the `packages` configuration.
  !!

          ********************************************************************************
          ############################
          # Package would be ignored #
          ############################
          Python recognizes 'insightface.data.objects' as an importable package[^1],
          but it is absent from setuptools' `packages` configuration.

          This leads to an ambiguous overall configuration. If you want to distribute this
          package, please make sure that 'insightface.data.objects' is explicitly added
          to the `packages` configuration field.

          Alternatively, you can also rely on setuptools' discovery methods
          (for example by using `find_namespace_packages(...)`/`find_namespace:`
          instead of `find_packages(...)`/`find:`).

          You can read more about "package discovery" on setuptools documentation page:

          - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html

          If you don't want 'insightface.data.objects' to be distributed and are
          already explicitly excluding 'insightface.data.objects' via
          `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
          you can try to use `exclude_package_data`, or `include-package-data=False` in
          combination with a more fine grained `package-data` configuration.

          You can read more about "package data files" on setuptools documentation page:

          - https://setuptools.pypa.io/en/latest/userguide/datafiles.html


          [^1]: For Python, any directory (with suitable naming) can be imported,
                even if it does not contain any `.py` files.
                On the other hand, currently there is no concept of package data
                directory, all directories are treated like packages.
          ********************************************************************************

  !!
    check.warn(importable)
  creating build\lib.win-amd64-cpython-311\insightface\thirdparty\face3d\mesh\cython
  copying insightface\thirdparty\face3d\mesh\cython\mesh_core.cpp -> build\lib.win-amd64-cpython-311\insightface\thirdparty\face3d\mesh\cython
  copying insightface\thirdparty\face3d\mesh\cython\mesh_core.h -> build\lib.win-amd64-cpython-311\insightface\thirdparty\face3d\mesh\cython
  copying insightface\thirdparty\face3d\mesh\cython\mesh_core_cython.cpp -> build\lib.win-amd64-cpython-311\insightface\thirdparty\face3d\mesh\cython
  creating build\lib.win-amd64-cpython-311\insightface\data\images
  copying insightface\data\images\Tom_Hanks_54745.png -> build\lib.win-amd64-cpython-311\insightface\data\images
  copying insightface\data\images\mask_black.jpg -> build\lib.win-amd64-cpython-311\insightface\data\images
  copying insightface\data\images\mask_blue.jpg -> build\lib.win-amd64-cpython-311\insightface\data\images
  copying insightface\data\images\mask_green.jpg -> build\lib.win-amd64-cpython-311\insightface\data\images
  copying insightface\data\images\mask_white.jpg -> build\lib.win-amd64-cpython-311\insightface\data\images
  copying insightface\data\images\t1.jpg -> build\lib.win-amd64-cpython-311\insightface\data\images
  creating build\lib.win-amd64-cpython-311\insightface\data\objects
  copying insightface\data\objects\meanshape_68.pkl -> build\lib.win-amd64-cpython-311\insightface\data\objects
  copying insightface\thirdparty\face3d\mesh\cython\mesh_core_cython.c -> build\lib.win-amd64-cpython-311\insightface\thirdparty\face3d\mesh\cython
  copying insightface\thirdparty\face3d\mesh\cython\mesh_core_cython.cpp -> build\lib.win-amd64-cpython-311\insightface\thirdparty\face3d\mesh\cython
  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

@SparklingWaterEnthusiast

I had the same problem while trying to install insightface on Windows 11. You need to install Microsoft Build Tools (link: https://visualstudio.microsoft.com/visual-cpp-build-tools/)

Choose Desktop development with C++

And then select the following individual components:

Windows 11 SDK C++ x64/x86 build tools

Those can be found in individual packages tab. install the latest version of each

@skyrimforest
Copy link

I had the same problem while trying to install insightface on Windows 11. You need to install Microsoft Build Tools (link: https://visualstudio.microsoft.com/visual-cpp-build-tools/)

Choose Desktop development with C++

And then select the following individual components:

Windows 11 SDK C++ x64/x86 build tools

I have settled my problem using this method

@MetAIvisuals
Copy link

What worked for me was going to the root folder ...\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable
and cmd "python_embeded\python.exe -m pip install -U pip" there.

Then go back in the python_embeded folder and run the batchfile

`python.exe -m pip install -U pip`

python.exe -m pip install "G:\Programme\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\python_embeded\insightface-0.7.3-cp311-cp311-win_amd64.whl" onnxruntime

pause

Before I was solely operating in the embeded folder, but running the first command outside of this folder solved it!

@rachelcenter
Copy link

I found that using python3.10 solved the issue

i installed 3.10 using pyenv and then tried to install reactor face swap by watching a youtube tutorial, only got 1 min 13 seconds into the video when i got this terminal error:

mesh_core_cython.cpp
insightface/thirdparty/face3d/mesh/cython/mesh_core_cython.cpp(36): fatal error C1083: Cannot open include file: 'Python.h': No such file or directory
error: command 'C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\bin\HostX86\x64\cl.exe' failed with exit code 2
[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: ERROR: Failed to build installable wheels for some pyproject.toml based projects (insightface)

@skyrimforest
Copy link

skyrimforest commented Aug 19, 2024 via email

@rachelcenter
Copy link

ipython 
import numpy 
numpy.get_include()

sudo cp -r /Users/xxxxxxxxxx/anaconda3/envs/sd/lib/python3.10/site-packages/numpy/core/include/numpy 
/usr/local/include

it perfectly solve this problem

im confused, what do you write instead of xxxxxx?

@rachelcenter
Copy link

rachelcenter commented Aug 19, 2024

I just installed FaceFusion was getting same error followed this fix and worked https://stackoverflow.com/questions/76739044/how-to-fix-this-issue-error-failed-building-wheel-for-insightface

i somewhat followed what you did. only I'm new to PC and i right clicked on the whl file and couldnt find terminal so i clicked open in an app that you can download from the microsoft store. so I downloaded python 3.10 and then right clicked on the file and said open with python 3.10 and this whole terminal window opened and it looked like it was doing something that didnt say the words error. ok now im going to the windows bat file to hit install for face reactor and got the same error again: ERROR: Failed building wheel for insightface

@rachelcenter
Copy link

I had the same problem while trying to install insightface on Windows 11. You need to install Microsoft Build Tools (link: https://visualstudio.microsoft.com/visual-cpp-build-tools/)
Choose Desktop development with C++
And then select the following individual components:
Windows 11 SDK C++ x64/x86 build tools

Those can be found in individual packages tab. install the latest version of each

if i go to the search bar for individual components and copy/paste this in verbatim "Windows 11 SDK C++ x64/x86 build tools" nothing comes up. there are sooooo many c++ x64/x86 versions to choose. i chose one "c++ modules for v143 build tools (x64/x86 - experimental" and it didnt fix my issue. at the very bottom fo the list i had chosen "windows 11 sdk (10.0.22621.0)" and that didnt fix the issue. which is the CORRECT version of c++ to choose?

@rachelcenter
Copy link

What worked for me was going to the root folder ...\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable and cmd "python_embeded\python.exe -m pip install -U pip" there.

Then go back in the python_embeded folder and run the batchfile

`python.exe -m pip install -U pip`

python.exe -m pip install "G:\Programme\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\python_embeded\insightface-0.7.3-cp311-cp311-win_amd64.whl" onnxruntime

pause

Before I was solely operating in the embeded folder, but running the first command outside of this folder solved it!

I tried that and terminal told me: ERROR: insightface-0.7.3-cp310-cp310-win_amd64.whl is not a supported wheel on this platform.

@MetAIvisuals
Copy link

What worked for me was going to the root folder ...\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable and cmd "python_embeded\python.exe -m pip install -U pip" there.
Then go back in the python_embeded folder and run the batchfile

`python.exe -m pip install -U pip`

python.exe -m pip install "G:\Programme\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\python_embeded\insightface-0.7.3-cp311-cp311-win_amd64.whl" onnxruntime

pause

Before I was solely operating in the embeded folder, but running the first command outside of this folder solved it!

I tried that and terminal told me: ERROR: insightface-0.7.3-cp310-cp310-win_amd64.whl is not a supported wheel on this platform.

Do you have cp310? If you have 311 you need to adjust the correct file. Also if you don't have the portable Version it might be different

@rachelcenter
Copy link

i have python 3.10.11 installed so i chose the cp310 windows because i assume 310 = python 3.10

@exploretech
Copy link

exploretech commented Sep 4, 2024

All i did was to go back and downloaded Microsoft build from Download Here and reinstalled it , although if you have it installed, a dialogu box will popup and comfirm youve downloaded and installed, and an interface will come up with OPTIONS
**- MODIFY

  • LAUNCH
  • MORE**
    kindly select MODIFY
    when it opens , Select DESKTOP DEVELOPMENT WITH C++,

THEN , go ahead and run it, the file is about 2GB, after that , restart your computer and case will be closed
try again
pip install insightface==0.7.3

@skyrimforest
Copy link

skyrimforest commented Sep 4, 2024 via email

@kairin
Copy link

kairin commented Sep 29, 2024

I just installed FaceFusion was getting same error followed this fix and worked https://stackoverflow.com/questions/76739044/how-to-fix-this-issue-error-failed-building-wheel-for-insightface

image

on WSL2 Ubuntu 24.04.

have to use this option and then it works.


copying insightface/thirdparty/face3d/mesh/cython/setup.py -> build/lib.linux-x86_64-cpython-312/insightface/thirdparty/face3d/mesh/cython
      running build_ext
      building 'insightface.thirdparty.face3d.mesh.cython.mesh_core_cython' extension
      creating build/temp.linux-x86_64-cpython-312/insightface/thirdparty/face3d/mesh/cython
      x86_64-linux-gnu-g++ -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -fPIC -Iinsightface/thirdparty/face3d/mesh/cython -I/tmp/pip-build-env-psyti34a/overlay/lib/python3.12/site-packages/numpy/_core/include -I/home/ks/venv/include -I/usr/include/python3.12 -c insightface/thirdparty/face3d/mesh/cython/mesh_core.cpp -o build/temp.linux-x86_64-cpython-312/insightface/thirdparty/face3d/mesh/cython/mesh_core.o
      x86_64-linux-gnu-g++ -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -fPIC -Iinsightface/thirdparty/face3d/mesh/cython -I/tmp/pip-build-env-psyti34a/overlay/lib/python3.12/site-packages/numpy/_core/include -I/home/ks/venv/include -I/usr/include/python3.12 -c insightface/thirdparty/face3d/mesh/cython/mesh_core_cython.cpp -o build/temp.linux-x86_64-cpython-312/insightface/thirdparty/face3d/mesh/cython/mesh_core_cython.o
      insightface/thirdparty/face3d/mesh/cython/mesh_core_cython.cpp:36:10: fatal error: Python.h: No such file or directory
         36 | #include "Python.h"
            |          ^~~~~~~~~~
      compilation terminated.
      error: command '/usr/bin/x86_64-linux-gnu-g++' failed with exit code 1
      [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: ERROR: Failed to build installable wheels for some pyproject.toml based projects (insightface)

 WSL at   bash MEM: 0.64% | 0/62GB   9s 209ms                                main ≡  ~1 
╭─ ♥ 13:44 |          ComfyUI-PhotoMaker-Plus
╰─ sudo apt-get install build-essential
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
build-essential is already the newest version (12.10ubuntu1).
build-essential set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

and then followed by the instructions in the url


 WSL at   bash MEM: 0.68% | 1/62GB   596ms                                   main ≡  ~1 
╭─ ♥ 13:45 |          ComfyUI-PhotoMaker-Plus
╰─ sudo apt-get install build-essential libssl-dev libffi-dev python3-dev -y
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
build-essential is already the newest version (12.10ubuntu1).
The following additional packages will be installed:
  libexpat1-dev libjs-sphinxdoc libjs-underscore libpython3-dev libpython3.12-dev python3.12-dev
  zlib1g-dev
Suggested packages:
  libssl-doc
The following NEW packages will be installed:
  libexpat1-dev libffi-dev libjs-sphinxdoc libjs-underscore libpython3-dev libpython3.12-dev libssl-dev
  python3-dev python3.12-dev zlib1g-dev
0 upgraded, 10 newly installed, 0 to remove and 0 not upgraded.
Need to get 9978 kB of archives.
After this operation, 46.8 MB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 libexpat1-dev amd64 2.6.1-2ubuntu0.1 [139 kB]
Get:2 http://archive.ubuntu.com/ubuntu noble/main amd64 libjs-underscore all 1.13.4~dfsg+~1.11.4-3 [118 kB]
Get:3 http://archive.ubuntu.com/ubuntu noble/main amd64 libjs-sphinxdoc all 7.2.6-6 [149 kB]
Get:4 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 zlib1g-dev amd64 1:1.3.dfsg-3.1ubuntu2.1 [894 kB]
Get:5 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 libpython3.12-dev amd64 3.12.3-1ubuntu0.2 [5672 kB]
Get:6 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 libpython3-dev amd64 3.12.3-0ubuntu2 [10.3 kB]
Get:7 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 libssl-dev amd64 3.0.13-0ubuntu3.4 [2408 kB]
Get:8 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 python3.12-dev amd64 3.12.3-1ubuntu0.2 [498 kB]
Get:9 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 python3-dev amd64 3.12.3-0ubuntu2 [26.7 kB]
Get:10 http://archive.ubuntu.com/ubuntu noble/main amd64 libffi-dev amd64 3.4.6-1build1 [62.8 kB]
Fetched 9978 kB in 16s (613 kB/s)
Selecting previously unselected package libexpat1-dev:amd64.
(Reading database ... 61337 files and directories currently installed.)
Preparing to unpack .../0-libexpat1-dev_2.6.1-2ubuntu0.1_amd64.deb ...
Unpacking libexpat1-dev:amd64 (2.6.1-2ubuntu0.1) ...
Selecting previously unselected package libjs-underscore.
Preparing to unpack .../1-libjs-underscore_1.13.4~dfsg+~1.11.4-3_all.deb ...
Unpacking libjs-underscore (1.13.4~dfsg+~1.11.4-3) ...
Selecting previously unselected package libjs-sphinxdoc.
Preparing to unpack .../2-libjs-sphinxdoc_7.2.6-6_all.deb ...
Unpacking libjs-sphinxdoc (7.2.6-6) ...
Selecting previously unselected package zlib1g-dev:amd64.
Preparing to unpack .../3-zlib1g-dev_1%3a1.3.dfsg-3.1ubuntu2.1_amd64.deb ...
Unpacking zlib1g-dev:amd64 (1:1.3.dfsg-3.1ubuntu2.1) ...
Selecting previously unselected package libpython3.12-dev:amd64.
Preparing to unpack .../4-libpython3.12-dev_3.12.3-1ubuntu0.2_amd64.deb ...
Unpacking libpython3.12-dev:amd64 (3.12.3-1ubuntu0.2) ...
Selecting previously unselected package libpython3-dev:amd64.
Preparing to unpack .../5-libpython3-dev_3.12.3-0ubuntu2_amd64.deb ...
Unpacking libpython3-dev:amd64 (3.12.3-0ubuntu2) ...
Selecting previously unselected package libssl-dev:amd64.
Preparing to unpack .../6-libssl-dev_3.0.13-0ubuntu3.4_amd64.deb ...
Unpacking libssl-dev:amd64 (3.0.13-0ubuntu3.4) ...
Selecting previously unselected package python3.12-dev.
Preparing to unpack .../7-python3.12-dev_3.12.3-1ubuntu0.2_amd64.deb ...
Unpacking python3.12-dev (3.12.3-1ubuntu0.2) ...
Selecting previously unselected package python3-dev.
Preparing to unpack .../8-python3-dev_3.12.3-0ubuntu2_amd64.deb ...
Unpacking python3-dev (3.12.3-0ubuntu2) ...
Selecting previously unselected package libffi-dev:amd64.
Preparing to unpack .../9-libffi-dev_3.4.6-1build1_amd64.deb ...
Unpacking libffi-dev:amd64 (3.4.6-1build1) ...
Setting up libffi-dev:amd64 (3.4.6-1build1) ...
Setting up libexpat1-dev:amd64 (2.6.1-2ubuntu0.1) ...
Setting up libssl-dev:amd64 (3.0.13-0ubuntu3.4) ...
Setting up zlib1g-dev:amd64 (1:1.3.dfsg-3.1ubuntu2.1) ...
Setting up libjs-underscore (1.13.4~dfsg+~1.11.4-3) ...
Setting up libpython3.12-dev:amd64 (3.12.3-1ubuntu0.2) ...
Setting up python3.12-dev (3.12.3-1ubuntu0.2) ...
Setting up libjs-sphinxdoc (7.2.6-6) ...
Setting up libpython3-dev:amd64 (3.12.3-0ubuntu2) ...
Setting up python3-dev (3.12.3-0ubuntu2) ...
Processing triggers for man-db (2.12.0-4build2) ...
Processing triggers for install-info (7.1-3build2) ...

and finally


 WSL at   bash MEM: 0.68% | 1/62GB   17s 400ms                               main ≡  ~1 
╭─ ♥ 13:46 |          ComfyUI-PhotoMaker-Plus
╰─ pip install insightface
Collecting insightface
  Using cached insightface-0.7.3.tar.gz (439 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: numpy in /home/ks/venv/lib/python3.12/site-packages (from insightface) (1.26.4)
Requirement already satisfied: onnx in /home/ks/venv/lib/python3.12/site-packages (from insightface) (1.16.2)
Requirement already satisfied: tqdm in /home/ks/venv/lib/python3.12/site-packages (from insightface) (4.66.4)
Requirement already satisfied: requests in /home/ks/venv/lib/python3.12/site-packages (from insightface) (2.31.0)
Requirement already satisfied: matplotlib in /home/ks/venv/lib/python3.12/site-packages (from insightface) (3.9.2)
Requirement already satisfied: Pillow in /home/ks/venv/lib/python3.12/site-packages (from insightface) (10.4.0)
Requirement already satisfied: scipy in /home/ks/venv/lib/python3.12/site-packages (from insightface) (1.13.1)
Collecting scikit-learn (from insightface)
  Using cached scikit_learn-1.5.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (13 kB)
Requirement already satisfied: scikit-image in /home/ks/venv/lib/python3.12/site-packages (from insightface) (0.24.0)
Collecting easydict (from insightface)
  Using cached easydict-1.13-py3-none-any.whl.metadata (4.2 kB)
Collecting cython (from insightface)
  Using cached Cython-3.0.11-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (3.2 kB)
Requirement already satisfied: albumentations in /home/ks/venv/lib/python3.12/site-packages (from insightface) (1.4.16)
Collecting prettytable (from insightface)
  Using cached prettytable-3.11.0-py3-none-any.whl.metadata (30 kB)
Requirement already satisfied: PyYAML in /home/ks/venv/lib/python3.12/site-packages (from albumentations->insightface) (6.0.1)
Requirement already satisfied: pydantic>=2.7.0 in /home/ks/venv/lib/python3.12/site-packages (from albumentations->insightface) (2.9.2)
Requirement already satisfied: albucore==0.0.17 in /home/ks/venv/lib/python3.12/site-packages (from albumentations->insightface) (0.0.17)
Requirement already satisfied: eval-type-backport in /home/ks/venv/lib/python3.12/site-packages (from albumentations->insightface) (0.2.0)
Requirement already satisfied: opencv-python-headless>=4.9.0.80 in /home/ks/venv/lib/python3.12/site-packages (from albumentations->insightface) (4.10.0.84)
Requirement already satisfied: networkx>=2.8 in /home/ks/venv/lib/python3.12/site-packages (from scikit-image->insightface) (3.2.1)
Requirement already satisfied: imageio>=2.33 in /home/ks/venv/lib/python3.12/site-packages (from scikit-image->insightface) (2.35.1)
Requirement already satisfied: tifffile>=2022.8.12 in /home/ks/venv/lib/python3.12/site-packages (from scikit-image->insightface) (2024.9.20)
Requirement already satisfied: packaging>=21 in /home/ks/venv/lib/python3.12/site-packages (from scikit-image->insightface) (24.1)
Requirement already satisfied: lazy-loader>=0.4 in /home/ks/venv/lib/python3.12/site-packages (from scikit-image->insightface) (0.4)
Requirement already satisfied: contourpy>=1.0.1 in /home/ks/venv/lib/python3.12/site-packages (from matplotlib->insightface) (1.3.0)
Requirement already satisfied: cycler>=0.10 in /home/ks/venv/lib/python3.12/site-packages (from matplotlib->insightface) (0.12.1)
Requirement already satisfied: fonttools>=4.22.0 in /home/ks/venv/lib/python3.12/site-packages (from matplotlib->insightface) (4.54.1)
Requirement already satisfied: kiwisolver>=1.3.1 in /home/ks/venv/lib/python3.12/site-packages (from matplotlib->insightface) (1.4.7)
Requirement already satisfied: pyparsing>=2.3.1 in /home/ks/venv/lib/python3.12/site-packages (from matplotlib->insightface) (3.1.4)
Requirement already satisfied: python-dateutil>=2.7 in /home/ks/venv/lib/python3.12/site-packages (from matplotlib->insightface) (2.9.0.post0)
Requirement already satisfied: protobuf>=3.20.2 in /home/ks/venv/lib/python3.12/site-packages (from onnx->insightface) (4.25.3)
Requirement already satisfied: wcwidth in /home/ks/venv/lib/python3.12/site-packages (from prettytable->insightface) (0.2.13)
Requirement already satisfied: charset-normalizer<4,>=2 in /home/ks/venv/lib/python3.12/site-packages (from requests->insightface) (3.3.2)
Requirement already satisfied: idna<4,>=2.5 in /home/ks/venv/lib/python3.12/site-packages (from requests->insightface) (3.7)
Requirement already satisfied: urllib3<3,>=1.21.1 in /home/ks/venv/lib/python3.12/site-packages (from requests->insightface) (1.26.20)
Requirement already satisfied: certifi>=2017.4.17 in /home/ks/venv/lib/python3.12/site-packages (from requests->insightface) (2024.7.4)
Requirement already satisfied: joblib>=1.2.0 in /home/ks/venv/lib/python3.12/site-packages (from scikit-learn->insightface) (1.4.2)
Collecting threadpoolctl>=3.1.0 (from scikit-learn->insightface)
  Using cached threadpoolctl-3.5.0-py3-none-any.whl.metadata (13 kB)
Requirement already satisfied: annotated-types>=0.6.0 in /home/ks/venv/lib/python3.12/site-packages (from pydantic>=2.7.0->albumentations->insightface) (0.7.0)
Requirement already satisfied: pydantic-core==2.23.4 in /home/ks/venv/lib/python3.12/site-packages (from pydantic>=2.7.0->albumentations->insightface) (2.23.4)
Requirement already satisfied: typing-extensions>=4.6.1 in /home/ks/venv/lib/python3.12/site-packages (from pydantic>=2.7.0->albumentations->insightface) (4.12.2)
Requirement already satisfied: six>=1.5 in /home/ks/venv/lib/python3.12/site-packages (from python-dateutil>=2.7->matplotlib->insightface) (1.16.0)
Using cached Cython-3.0.11-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.5 MB)
Using cached easydict-1.13-py3-none-any.whl (6.8 kB)
Using cached prettytable-3.11.0-py3-none-any.whl (28 kB)
Using cached scikit_learn-1.5.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (12.9 MB)
Using cached threadpoolctl-3.5.0-py3-none-any.whl (18 kB)
Building wheels for collected packages: insightface
  Building wheel for insightface (pyproject.toml) ... done
  Created wheel for insightface: filename=insightface-0.7.3-cp312-cp312-linux_x86_64.whl size=1076438 sha256=ff57a4847ba26864c91e69e6019855b7d16e1490f4155ebb713a734630af7e18
  Stored in directory: /home/ks/.cache/pip/wheels/73/3c/e2/6d4815e8a8b33a2006554d65ce0d1f973e768f4c7a222fa675
Successfully built insightface
Installing collected packages: easydict, threadpoolctl, prettytable, cython, scikit-learn, insightface
Successfully installed cython-3.0.11 easydict-1.13 insightface-0.7.3 prettytable-3.11.0 scikit-learn-1.5.2 threadpoolctl-3.5.0

 WSL at   bash MEM: 0.7% | 1/62GB   11s 694ms                                main ≡  ~1 
╭─ ♥ 13:46 |          ComfyUI-PhotoMaker-Plus
╰─

@skyrimforest
Copy link

skyrimforest commented Sep 29, 2024 via email

@331Dala
Copy link

331Dala commented Oct 7, 2024

I had the same problem while trying to install insightface on Windows 11. You need to install Microsoft Build Tools (link: https://visualstudio.microsoft.com/visual-cpp-build-tools/)

Choose Desktop development with C++

And then select the following individual components:

Windows 11 SDK C++ x64/x86 build tools

win11 装这个就能解决,感谢国际大佬
Uploading 屏幕截图 2024-10-07 131552.png…
大佬

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