Closed yyakupoglu closed 4 months ago
The installation error for InsightFace is not within the scope of discussion for this project. You need to search for a solution on your own; I believe there should be solutions available online.
Build error is caused by pyenv, installing system python (which included header files) and activating virtualenv there fixed the build issue.
Hi, newly pyenv virtualenv with py 3.10.10 doesn't build, error on insightface.
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 ╰─> [486 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-310 creating build/lib.macosx-13.2-arm64-cpython-310/insightface copying insightface/init.py -> build/lib.macosx-13.2-arm64-cpython-310/insightface creating build/lib.macosx-13.2-arm64-cpython-310/insightface/app copying insightface/app/init.py -> build/lib.macosx-13.2-arm64-cpython-310/insightface/app copying insightface/app/mask_renderer.py -> build/lib.macosx-13.2-arm64-cpython-310/insightface/app copying insightface/app/common.py -> build/lib.macosx-13.2-arm64-cpython-310/insightface/app copying insightface/app/face_analysis.py -> build/lib.macosx-13.2-arm64-cpython-310/insightface/app creating build/lib.macosx-13.2-arm64-cpython-310/insightface/utils copying insightface/utils/download.py -> build/lib.macosx-13.2-arm64-cpython-310/insightface/utils copying insightface/utils/filesystem.py -> build/lib.macosx-13.2-arm64-cpython-310/insightface/utils copying insightface/utils/init.py -> build/lib.macosx-13.2-arm64-cpython-310/insightface/utils copying insightface/utils/transform.py -> build/lib.macosx-13.2-arm64-cpython-310/insightface/utils copying insightface/utils/storage.py -> build/lib.macosx-13.2-arm64-cpython-310/insightface/utils copying insightface/utils/face_align.py -> build/lib.macosx-13.2-arm64-cpython-310/insightface/utils copying insightface/utils/constant.py -> build/lib.macosx-13.2-arm64-cpython-310/insightface/utils creating build/lib.macosx-13.2-arm64-cpython-310/insightface/model_zoo copying insightface/model_zoo/landmark.py -> build/lib.macosx-13.2-arm64-cpython-310/insightface/model_zoo copying insightface/model_zoo/inswapper.py -> build/lib.macosx-13.2-arm64-cpython-310/insightface/model_zoo copying insightface/model_zoo/arcface_onnx.py -> build/lib.macosx-13.2-arm64-cpython-310/insightface/model_zoo copying insightface/model_zoo/retinaface.py -> build/lib.macosx-13.2-arm64-cpython-310/insightface/model_zoo copying insightface/model_zoo/attribute.py -> build/lib.macosx-13.2-arm64-cpython-310/insightface/model_zoo copying insightface/model_zoo/model_zoo.py -> build/lib.macosx-13.2-arm64-cpython-310/insightface/model_zoo copying insightface/model_zoo/scrfd.py -> build/lib.macosx-13.2-arm64-cpython-310/insightface/model_zoo copying insightface/model_zoo/init.py -> build/lib.macosx-13.2-arm64-cpython-310/insightface/model_zoo copying insightface/model_zoo/model_store.py -> build/lib.macosx-13.2-arm64-cpython-310/insightface/model_zoo creating build/lib.macosx-13.2-arm64-cpython-310/insightface/commands copying insightface/commands/insightface_cli.py -> build/lib.macosx-13.2-arm64-cpython-310/insightface/commands copying insightface/commands/rec_add_mask_param.py -> build/lib.macosx-13.2-arm64-cpython-310/insightface/commands copying insightface/commands/init.py -> build/lib.macosx-13.2-arm64-cpython-310/insightface/commands copying insightface/commands/model_download.py -> build/lib.macosx-13.2-arm64-cpython-310/insightface/commands creating build/lib.macosx-13.2-arm64-cpython-310/insightface/data copying insightface/data/init.py -> build/lib.macosx-13.2-arm64-cpython-310/insightface/data copying insightface/data/rec_builder.py -> build/lib.macosx-13.2-arm64-cpython-310/insightface/data copying insightface/data/pickle_object.py -> build/lib.macosx-13.2-arm64-cpython-310/insightface/data copying insightface/data/image.py -> build/lib.macosx-13.2-arm64-cpython-310/insightface/data creating build/lib.macosx-13.2-arm64-cpython-310/insightface/thirdparty copying insightface/thirdparty/init.py -> build/lib.macosx-13.2-arm64-cpython-310/insightface/thirdparty creating build/lib.macosx-13.2-arm64-cpython-310/insightface/thirdparty/face3d copying insightface/thirdparty/face3d/init.py -> build/lib.macosx-13.2-arm64-cpython-310/insightface/thirdparty/face3d creating build/lib.macosx-13.2-arm64-cpython-310/insightface/thirdparty/face3d/mesh copying insightface/thirdparty/face3d/mesh/light.py -> build/lib.macosx-13.2-arm64-cpython-310/insightface/thirdparty/face3d/mesh copying insightface/thirdparty/face3d/mesh/render.py -> build/lib.macosx-13.2-arm64-cpython-310/insightface/thirdparty/face3d/mesh copying insightface/thirdparty/face3d/mesh/io.py -> build/lib.macosx-13.2-arm64-cpython-310/insightface/thirdparty/face3d/mesh copying insightface/thirdparty/face3d/mesh/init.py -> build/lib.macosx-13.2-arm64-cpython-310/insightface/thirdparty/face3d/mesh copying insightface/thirdparty/face3d/mesh/vis.py -> build/lib.macosx-13.2-arm64-cpython-310/insightface/thirdparty/face3d/mesh copying insightface/thirdparty/face3d/mesh/transform.py -> build/lib.macosx-13.2-arm64-cpython-310/insightface/thirdparty/face3d/mesh creating build/lib.macosx-13.2-arm64-cpython-310/insightface/thirdparty/face3d/mesh_numpy copying insightface/thirdparty/face3d/mesh_numpy/light.py -> build/lib.macosx-13.2-arm64-cpython-310/insightface/thirdparty/face3d/mesh_numpy copying insightface/thirdparty/face3d/mesh_numpy/render.py -> build/lib.macosx-13.2-arm64-cpython-310/insightface/thirdparty/face3d/mesh_numpy copying insightface/thirdparty/face3d/mesh_numpy/io.py -> build/lib.macosx-13.2-arm64-cpython-310/insightface/thirdparty/face3d/mesh_numpy copying insightface/thirdparty/face3d/mesh_numpy/init.py -> build/lib.macosx-13.2-arm64-cpython-310/insightface/thirdparty/face3d/mesh_numpy copying insightface/thirdparty/face3d/mesh_numpy/vis.py -> build/lib.macosx-13.2-arm64-cpython-310/insightface/thirdparty/face3d/mesh_numpy copying insightface/thirdparty/face3d/mesh_numpy/transform.py -> build/lib.macosx-13.2-arm64-cpython-310/insightface/thirdparty/face3d/mesh_numpy creating build/lib.macosx-13.2-arm64-cpython-310/insightface/thirdparty/face3d/morphable_model copying insightface/thirdparty/face3d/morphable_model/morphabel_model.py -> build/lib.macosx-13.2-arm64-cpython-310/insightface/thirdparty/face3d/morphable_model copying insightface/thirdparty/face3d/morphable_model/fit.py -> build/lib.macosx-13.2-arm64-cpython-310/insightface/thirdparty/face3d/morphable_model copying insightface/thirdparty/face3d/morphable_model/init.py -> build/lib.macosx-13.2-arm64-cpython-310/insightface/thirdparty/face3d/morphable_model copying insightface/thirdparty/face3d/morphable_model/load.py -> build/lib.macosx-13.2-arm64-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' /private/var/folders/r5/qzv76wc55l50bdkxc6khcn_m0000gn/T/pip-build-env-pn4jk678/overlay/lib/python3.10/site-packages/setuptools/command/build_py.py:215: _Warning: Package 'insightface.data.images' is absent from the
packages
configuration. !!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