deepinsight / insightface

State-of-the-art 2D and 3D Face Analysis Project
https://insightface.ai
22.83k stars 5.34k forks source link

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 closed 1 year ago

swumagic commented 1 year ago

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 commented 1 year ago

你解决了么

coder3101 commented 1 year ago

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 commented 1 year ago

I found that using python3.10 solved the issue

stanleyssss commented 1 year ago

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 commented 1 year ago

Same as above. Using python 3.11.4.

zdxpan commented 1 year ago
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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

@smallchao my machine is mac m2

brunoguratti commented 1 year ago

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 commented 1 year ago

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

jacobneveraline commented 11 months ago

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

jlitz commented 11 months ago

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 commented 11 months ago

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 https://github.com/deepinsight/insightface/issues/2430#issuecomment-1728249734

swingdoor commented 10 months ago

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 commented 10 months ago

This worked for me https://stackoverflow.com/questions/76739044/how-to-fix-this-issue-error-failed-building-wheel-for-insightface

shitiandmw commented 9 months ago

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 commented 9 months ago

I found that using python3.10 solved the issue

Not solved - I using Python 3.10.6.

Richar618 commented 8 months ago

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 commented 7 months ago

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 commented 7 months ago

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 commented 1 month ago

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 commented 3 weeks ago

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 commented 3 weeks ago

您好,您的邮件我已收到!

rachelcenter commented 3 weeks ago
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 commented 3 weeks ago

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 commented 3 weeks ago

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 commented 3 weeks ago

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 commented 3 weeks ago

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 commented 3 weeks ago

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

exploretech commented 1 week ago

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

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 commented 1 week ago

您好,您的邮件我已收到!