最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

project reactor - Not able to install `insightface==0.7.3` using `python3.10.16` - Stack Overflow

programmeradmin1浏览0评论

System Info

python --version

Output Python 3.10.16

I ran this command python -m pip install insightface==0.7.3 and getting the following console output

Using cached Cython-3.0.11-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.6 MB)
Using cached easydict-1.13-py3-none-any.whl (6.8 kB)
Using cached onnx-1.17.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (16.0 MB)
Using cached prettytable-3.14.0-py3-none-any.whl (31 kB)
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
  ╰─> [219 lines of output]
      WARNING: pandoc not enabled
      running bdist_wheel
      running build
      running build_py
      creating build/lib.linux-x86_64-cpython-310/insightface
      copying insightface/__init__.py -> build/lib.linux-x86_64-cpython-310/insightface
      creating build/lib.linux-x86_64-cpython-310/insightface/app
      copying insightface/app/__init__.py -> build/lib.linux-x86_64-cpython-310/insightface/app
      copying insightface/app/common.py -> build/lib.linux-x86_64-cpython-310/insightface/app
      copying insightface/app/face_analysis.py -> build/lib.linux-x86_64-cpython-310/insightface/app
      copying insightface/app/mask_renderer.py -> build/lib.linux-x86_64-cpython-310/insightface/app
      creating build/lib.linux-x86_64-cpython-310/insightface/commands
      copying insightface/commands/__init__.py -> build/lib.linux-x86_64-cpython-310/insightface/commands
      copying insightface/commands/insightface_cli.py -> build/lib.linux-x86_64-cpython-310/insightface/commands
      copying insightface/commands/model_download.py -> build/lib.linux-x86_64-cpython-310/insightface/commands
      copying insightface/commands/rec_add_mask_param.py -> build/lib.linux-x86_64-cpython-310/insightface/commands
      creating build/lib.linux-x86_64-cpython-310/insightface/data
      copying insightface/data/__init__.py -> build/lib.linux-x86_64-cpython-310/insightface/data
      copying insightface/data/image.py -> build/lib.linux-x86_64-cpython-310/insightface/data
      copying insightface/data/pickle_object.py -> build/lib.linux-x86_64-cpython-310/insightface/data
      copying insightface/data/rec_builder.py -> build/lib.linux-x86_64-cpython-310/insightface/data
      creating build/lib.linux-x86_64-cpython-310/insightface/model_zoo
      copying insightface/model_zoo/__init__.py -> build/lib.linux-x86_64-cpython-310/insightface/model_zoo
      copying insightface/model_zoo/arcface_onnx.py -> build/lib.linux-x86_64-cpython-310/insightface/model_zoo
      copying insightface/model_zoo/attribute.py -> build/lib.linux-x86_64-cpython-310/insightface/model_zoo
      copying insightface/model_zoo/inswapper.py -> build/lib.linux-x86_64-cpython-310/insightface/model_zoo
      copying insightface/model_zoo/landmark.py -> build/lib.linux-x86_64-cpython-310/insightface/model_zoo
      copying insightface/model_zoo/model_store.py -> build/lib.linux-x86_64-cpython-310/insightface/model_zoo
      copying insightface/model_zoo/model_zoo.py -> build/lib.linux-x86_64-cpython-310/insightface/model_zoo
      copying insightface/model_zoo/retinaface.py -> build/lib.linux-x86_64-cpython-310/insightface/model_zoo
      copying insightface/model_zoo/scrfd.py -> build/lib.linux-x86_64-cpython-310/insightface/model_zoo
      creating build/lib.linux-x86_64-cpython-310/insightface/thirdparty
      copying insightface/thirdparty/__init__.py -> build/lib.linux-x86_64-cpython-310/insightface/thirdparty
      creating build/lib.linux-x86_64-cpython-310/insightface/utils
      copying insightface/utils/__init__.py -> build/lib.linux-x86_64-cpython-310/insightface/utils
      copying insightface/utils/constant.py -> build/lib.linux-x86_64-cpython-310/insightface/utils
      copying insightface/utils/download.py -> build/lib.linux-x86_64-cpython-310/insightface/utils
      copying insightface/utils/face_align.py -> build/lib.linux-x86_64-cpython-310/insightface/utils
      copying insightface/utils/filesystem.py -> build/lib.linux-x86_64-cpython-310/insightface/utils
      copying insightface/utils/storage.py -> build/lib.linux-x86_64-cpython-310/insightface/utils
      copying insightface/utils/transform.py -> build/lib.linux-x86_64-cpython-310/insightface/utils
      creating build/lib.linux-x86_64-cpython-310/insightface/thirdparty/face3d
      copying insightface/thirdparty/face3d/__init__.py -> build/lib.linux-x86_64-cpython-310/insightface/thirdparty/face3d
      creating build/lib.linux-x86_64-cpython-310/insightface/thirdparty/face3d/mesh
      copying insightface/thirdparty/face3d/mesh/__init__.py -> build/lib.linux-x86_64-cpython-310/insightface/thirdparty/face3d/mesh
      copying insightface/thirdparty/face3d/mesh/io.py -> build/lib.linux-x86_64-cpython-310/insightface/thirdparty/face3d/mesh
      copying insightface/thirdparty/face3d/mesh/light.py -> build/lib.linux-x86_64-cpython-310/insightface/thirdparty/face3d/mesh
      copying insightface/thirdparty/face3d/mesh/render.py -> build/lib.linux-x86_64-cpython-310/insightface/thirdparty/face3d/mesh
      copying insightface/thirdparty/face3d/mesh/transform.py -> build/lib.linux-x86_64-cpython-310/insightface/thirdparty/face3d/mesh
      copying insightface/thirdparty/face3d/mesh/vis.py -> build/lib.linux-x86_64-cpython-310/insightface/thirdparty/face3d/mesh
      creating build/lib.linux-x86_64-cpython-310/insightface/thirdparty/face3d/mesh_numpy
      copying insightface/thirdparty/face3d/mesh_numpy/__init__.py -> build/lib.linux-x86_64-cpython-310/insightface/thirdparty/face3d/mesh_numpy
      copying insightface/thirdparty/face3d/mesh_numpy/io.py -> build/lib.linux-x86_64-cpython-310/insightface/thirdparty/face3d/mesh_numpy
      copying insightface/thirdparty/face3d/mesh_numpy/light.py -> build/lib.linux-x86_64-cpython-310/insightface/thirdparty/face3d/mesh_numpy
      copying insightface/thirdparty/face3d/mesh_numpy/render.py -> build/lib.linux-x86_64-cpython-310/insightface/thirdparty/face3d/mesh_numpy
      copying insightface/thirdparty/face3d/mesh_numpy/transform.py -> build/lib.linux-x86_64-cpython-310/insightface/thirdparty/face3d/mesh_numpy
      copying insightface/thirdparty/face3d/mesh_numpy/vis.py -> build/lib.linux-x86_64-cpython-310/insightface/thirdparty/face3d/mesh_numpy
      creating build/lib.linux-x86_64-cpython-310/insightface/thirdparty/face3d/morphable_model
      copying insightface/thirdparty/face3d/morphable_model/__init__.py -> build/lib.linux-x86_64-cpython-310/insightface/thirdparty/face3d/morphable_model
      copying insightface/thirdparty/face3d/morphable_model/fit.py -> build/lib.linux-x86_64-cpython-310/insightface/thirdparty/face3d/morphable_model
      copying insightface/thirdparty/face3d/morphable_model/load.py -> build/lib.linux-x86_64-cpython-310/insightface/thirdparty/face3d/morphable_model
      copying insightface/thirdparty/face3d/morphable_model/morphabel_model.py -> build/lib.linux-x86_64-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'
      /tmp/pip-build-env-urihlhmn/overlay/lib/python3.10/site-packages/setuptools/command/build_py.py:212: _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:
      
              - .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:
      
              - .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)
      /tmp/pip-build-env-urihlhmn/overlay/lib/python3.10/site-packages/setuptools/command/build_py.py:212: _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:
      
              - .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:
      
              - .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)
      /tmp/pip-build-env-urihlhmn/overlay/lib/python3.10/site-packages/setuptools/command/build_py.py:212: _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:
      
              - .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:
      
              - .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.linux-x86_64-cpython-310/insightface/data/images
      copying insightface/data/images/Tom_Hanks_54745.png -> build/lib.linux-x86_64-cpython-310/insightface/data/images
      copying insightface/data/images/mask_black.jpg -> build/lib.linux-x86_64-cpython-310/insightface/data/images
      copying insightface/data/images/mask_blue.jpg -> build/lib.linux-x86_64-cpython-310/insightface/data/images
      copying insightface/data/images/mask_green.jpg -> build/lib.linux-x86_64-cpython-310/insightface/data/images
      copying insightface/data/images/mask_white.jpg -> build/lib.linux-x86_64-cpython-310/insightface/data/images
      copying insightface/data/images/t1.jpg -> build/lib.linux-x86_64-cpython-310/insightface/data/images
      creating build/lib.linux-x86_64-cpython-310/insightface/data/objects
      copying insightface/data/objects/meanshape_68.pkl -> build/lib.linux-x86_64-cpython-310/insightface/data/objects
      creating build/lib.linux-x86_64-cpython-310/insightface/thirdparty/face3d/mesh/cython
      copying insightface/thirdparty/face3d/mesh/cython/mesh_core.cpp -> build/lib.linux-x86_64-cpython-310/insightface/thirdparty/face3d/mesh/cython
      copying insightface/thirdparty/face3d/mesh/cython/mesh_core.h -> build/lib.linux-x86_64-cpython-310/insightface/thirdparty/face3d/mesh/cython
      copying insightface/thirdparty/face3d/mesh/cython/mesh_core_cython.c -> build/lib.linux-x86_64-cpython-310/insightface/thirdparty/face3d/mesh/cython
      copying insightface/thirdparty/face3d/mesh/cython/mesh_core_cython.cpp -> build/lib.linux-x86_64-cpython-310/insightface/thirdparty/face3d/mesh/cython
      copying insightface/thirdparty/face3d/mesh/cython/mesh_core_cython.pyx -> build/lib.linux-x86_64-cpython-310/insightface/thirdparty/face3d/mesh/cython
      copying insightface/thirdparty/face3d/mesh/cython/setup.py -> build/lib.linux-x86_64-cpython-310/insightface/thirdparty/face3d/mesh/cython
      running build_ext
      building 'insightface.thirdparty.face3d.mesh.cython.mesh_core_cython' extension
      creating build/temp.linux-x86_64-cpython-310/insightface/thirdparty/face3d/mesh/cython
      g++ -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fcf-protection -fexceptions -fcf-protection -fexceptions -fcf-protection -fexceptions -fPIC -Iinsightface/thirdparty/face3d/mesh/cython -I/tmp/pip-build-env-urihlhmn/overlay/lib64/python3.10/site-packages/numpy/_core/include -I/home/pawanroy/projects/stable-diffusion-webui/venv/include -I/usr/include/python3.10 -c insightface/thirdparty/face3d/mesh/cython/mesh_core.cpp -o build/temp.linux-x86_64-cpython-310/insightface/thirdparty/face3d/mesh/cython/mesh_core.o
      g++ -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fcf-protection -fexceptions -fcf-protection -fexceptions -fcf-protection -fexceptions -fPIC -Iinsightface/thirdparty/face3d/mesh/cython -I/tmp/pip-build-env-urihlhmn/overlay/lib64/python3.10/site-packages/numpy/_core/include -I/home/pawanroy/projects/stable-diffusion-webui/venv/include -I/usr/include/python3.10 -c insightface/thirdparty/face3d/mesh/cython/mesh_core_cython.cpp -o build/temp.linux-x86_64-cpython-310/insightface/thirdparty/face3d/mesh/cython/mesh_core_cython.o
      insightface/thirdparty/face3d/mesh/cython/mesh_core_cython.cpp:36:10: fatal error: Python.h: No such file or directory
         36 | #include "Python.h"
            |          ^~~~~~~~~~
      compilation terminated.
      error: command '/usr/bin/g++' failed with exit code 1
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for insightface
Failed to build insightface
ERROR: Failed to build installable wheels for some pyproject.toml based projects (insightface)

Note - I have removed all the logs which contains my system info

As per the Project Page. This should get installed without any issue.

System Info

python --version

Output Python 3.10.16

I ran this command python -m pip install insightface==0.7.3 and getting the following console output

Using cached Cython-3.0.11-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.6 MB)
Using cached easydict-1.13-py3-none-any.whl (6.8 kB)
Using cached onnx-1.17.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (16.0 MB)
Using cached prettytable-3.14.0-py3-none-any.whl (31 kB)
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
  ╰─> [219 lines of output]
      WARNING: pandoc not enabled
      running bdist_wheel
      running build
      running build_py
      creating build/lib.linux-x86_64-cpython-310/insightface
      copying insightface/__init__.py -> build/lib.linux-x86_64-cpython-310/insightface
      creating build/lib.linux-x86_64-cpython-310/insightface/app
      copying insightface/app/__init__.py -> build/lib.linux-x86_64-cpython-310/insightface/app
      copying insightface/app/common.py -> build/lib.linux-x86_64-cpython-310/insightface/app
      copying insightface/app/face_analysis.py -> build/lib.linux-x86_64-cpython-310/insightface/app
      copying insightface/app/mask_renderer.py -> build/lib.linux-x86_64-cpython-310/insightface/app
      creating build/lib.linux-x86_64-cpython-310/insightface/commands
      copying insightface/commands/__init__.py -> build/lib.linux-x86_64-cpython-310/insightface/commands
      copying insightface/commands/insightface_cli.py -> build/lib.linux-x86_64-cpython-310/insightface/commands
      copying insightface/commands/model_download.py -> build/lib.linux-x86_64-cpython-310/insightface/commands
      copying insightface/commands/rec_add_mask_param.py -> build/lib.linux-x86_64-cpython-310/insightface/commands
      creating build/lib.linux-x86_64-cpython-310/insightface/data
      copying insightface/data/__init__.py -> build/lib.linux-x86_64-cpython-310/insightface/data
      copying insightface/data/image.py -> build/lib.linux-x86_64-cpython-310/insightface/data
      copying insightface/data/pickle_object.py -> build/lib.linux-x86_64-cpython-310/insightface/data
      copying insightface/data/rec_builder.py -> build/lib.linux-x86_64-cpython-310/insightface/data
      creating build/lib.linux-x86_64-cpython-310/insightface/model_zoo
      copying insightface/model_zoo/__init__.py -> build/lib.linux-x86_64-cpython-310/insightface/model_zoo
      copying insightface/model_zoo/arcface_onnx.py -> build/lib.linux-x86_64-cpython-310/insightface/model_zoo
      copying insightface/model_zoo/attribute.py -> build/lib.linux-x86_64-cpython-310/insightface/model_zoo
      copying insightface/model_zoo/inswapper.py -> build/lib.linux-x86_64-cpython-310/insightface/model_zoo
      copying insightface/model_zoo/landmark.py -> build/lib.linux-x86_64-cpython-310/insightface/model_zoo
      copying insightface/model_zoo/model_store.py -> build/lib.linux-x86_64-cpython-310/insightface/model_zoo
      copying insightface/model_zoo/model_zoo.py -> build/lib.linux-x86_64-cpython-310/insightface/model_zoo
      copying insightface/model_zoo/retinaface.py -> build/lib.linux-x86_64-cpython-310/insightface/model_zoo
      copying insightface/model_zoo/scrfd.py -> build/lib.linux-x86_64-cpython-310/insightface/model_zoo
      creating build/lib.linux-x86_64-cpython-310/insightface/thirdparty
      copying insightface/thirdparty/__init__.py -> build/lib.linux-x86_64-cpython-310/insightface/thirdparty
      creating build/lib.linux-x86_64-cpython-310/insightface/utils
      copying insightface/utils/__init__.py -> build/lib.linux-x86_64-cpython-310/insightface/utils
      copying insightface/utils/constant.py -> build/lib.linux-x86_64-cpython-310/insightface/utils
      copying insightface/utils/download.py -> build/lib.linux-x86_64-cpython-310/insightface/utils
      copying insightface/utils/face_align.py -> build/lib.linux-x86_64-cpython-310/insightface/utils
      copying insightface/utils/filesystem.py -> build/lib.linux-x86_64-cpython-310/insightface/utils
      copying insightface/utils/storage.py -> build/lib.linux-x86_64-cpython-310/insightface/utils
      copying insightface/utils/transform.py -> build/lib.linux-x86_64-cpython-310/insightface/utils
      creating build/lib.linux-x86_64-cpython-310/insightface/thirdparty/face3d
      copying insightface/thirdparty/face3d/__init__.py -> build/lib.linux-x86_64-cpython-310/insightface/thirdparty/face3d
      creating build/lib.linux-x86_64-cpython-310/insightface/thirdparty/face3d/mesh
      copying insightface/thirdparty/face3d/mesh/__init__.py -> build/lib.linux-x86_64-cpython-310/insightface/thirdparty/face3d/mesh
      copying insightface/thirdparty/face3d/mesh/io.py -> build/lib.linux-x86_64-cpython-310/insightface/thirdparty/face3d/mesh
      copying insightface/thirdparty/face3d/mesh/light.py -> build/lib.linux-x86_64-cpython-310/insightface/thirdparty/face3d/mesh
      copying insightface/thirdparty/face3d/mesh/render.py -> build/lib.linux-x86_64-cpython-310/insightface/thirdparty/face3d/mesh
      copying insightface/thirdparty/face3d/mesh/transform.py -> build/lib.linux-x86_64-cpython-310/insightface/thirdparty/face3d/mesh
      copying insightface/thirdparty/face3d/mesh/vis.py -> build/lib.linux-x86_64-cpython-310/insightface/thirdparty/face3d/mesh
      creating build/lib.linux-x86_64-cpython-310/insightface/thirdparty/face3d/mesh_numpy
      copying insightface/thirdparty/face3d/mesh_numpy/__init__.py -> build/lib.linux-x86_64-cpython-310/insightface/thirdparty/face3d/mesh_numpy
      copying insightface/thirdparty/face3d/mesh_numpy/io.py -> build/lib.linux-x86_64-cpython-310/insightface/thirdparty/face3d/mesh_numpy
      copying insightface/thirdparty/face3d/mesh_numpy/light.py -> build/lib.linux-x86_64-cpython-310/insightface/thirdparty/face3d/mesh_numpy
      copying insightface/thirdparty/face3d/mesh_numpy/render.py -> build/lib.linux-x86_64-cpython-310/insightface/thirdparty/face3d/mesh_numpy
      copying insightface/thirdparty/face3d/mesh_numpy/transform.py -> build/lib.linux-x86_64-cpython-310/insightface/thirdparty/face3d/mesh_numpy
      copying insightface/thirdparty/face3d/mesh_numpy/vis.py -> build/lib.linux-x86_64-cpython-310/insightface/thirdparty/face3d/mesh_numpy
      creating build/lib.linux-x86_64-cpython-310/insightface/thirdparty/face3d/morphable_model
      copying insightface/thirdparty/face3d/morphable_model/__init__.py -> build/lib.linux-x86_64-cpython-310/insightface/thirdparty/face3d/morphable_model
      copying insightface/thirdparty/face3d/morphable_model/fit.py -> build/lib.linux-x86_64-cpython-310/insightface/thirdparty/face3d/morphable_model
      copying insightface/thirdparty/face3d/morphable_model/load.py -> build/lib.linux-x86_64-cpython-310/insightface/thirdparty/face3d/morphable_model
      copying insightface/thirdparty/face3d/morphable_model/morphabel_model.py -> build/lib.linux-x86_64-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'
      /tmp/pip-build-env-urihlhmn/overlay/lib/python3.10/site-packages/setuptools/command/build_py.py:212: _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)
      /tmp/pip-build-env-urihlhmn/overlay/lib/python3.10/site-packages/setuptools/command/build_py.py:212: _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)
      /tmp/pip-build-env-urihlhmn/overlay/lib/python3.10/site-packages/setuptools/command/build_py.py:212: _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.linux-x86_64-cpython-310/insightface/data/images
      copying insightface/data/images/Tom_Hanks_54745.png -> build/lib.linux-x86_64-cpython-310/insightface/data/images
      copying insightface/data/images/mask_black.jpg -> build/lib.linux-x86_64-cpython-310/insightface/data/images
      copying insightface/data/images/mask_blue.jpg -> build/lib.linux-x86_64-cpython-310/insightface/data/images
      copying insightface/data/images/mask_green.jpg -> build/lib.linux-x86_64-cpython-310/insightface/data/images
      copying insightface/data/images/mask_white.jpg -> build/lib.linux-x86_64-cpython-310/insightface/data/images
      copying insightface/data/images/t1.jpg -> build/lib.linux-x86_64-cpython-310/insightface/data/images
      creating build/lib.linux-x86_64-cpython-310/insightface/data/objects
      copying insightface/data/objects/meanshape_68.pkl -> build/lib.linux-x86_64-cpython-310/insightface/data/objects
      creating build/lib.linux-x86_64-cpython-310/insightface/thirdparty/face3d/mesh/cython
      copying insightface/thirdparty/face3d/mesh/cython/mesh_core.cpp -> build/lib.linux-x86_64-cpython-310/insightface/thirdparty/face3d/mesh/cython
      copying insightface/thirdparty/face3d/mesh/cython/mesh_core.h -> build/lib.linux-x86_64-cpython-310/insightface/thirdparty/face3d/mesh/cython
      copying insightface/thirdparty/face3d/mesh/cython/mesh_core_cython.c -> build/lib.linux-x86_64-cpython-310/insightface/thirdparty/face3d/mesh/cython
      copying insightface/thirdparty/face3d/mesh/cython/mesh_core_cython.cpp -> build/lib.linux-x86_64-cpython-310/insightface/thirdparty/face3d/mesh/cython
      copying insightface/thirdparty/face3d/mesh/cython/mesh_core_cython.pyx -> build/lib.linux-x86_64-cpython-310/insightface/thirdparty/face3d/mesh/cython
      copying insightface/thirdparty/face3d/mesh/cython/setup.py -> build/lib.linux-x86_64-cpython-310/insightface/thirdparty/face3d/mesh/cython
      running build_ext
      building 'insightface.thirdparty.face3d.mesh.cython.mesh_core_cython' extension
      creating build/temp.linux-x86_64-cpython-310/insightface/thirdparty/face3d/mesh/cython
      g++ -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fcf-protection -fexceptions -fcf-protection -fexceptions -fcf-protection -fexceptions -fPIC -Iinsightface/thirdparty/face3d/mesh/cython -I/tmp/pip-build-env-urihlhmn/overlay/lib64/python3.10/site-packages/numpy/_core/include -I/home/pawanroy/projects/stable-diffusion-webui/venv/include -I/usr/include/python3.10 -c insightface/thirdparty/face3d/mesh/cython/mesh_core.cpp -o build/temp.linux-x86_64-cpython-310/insightface/thirdparty/face3d/mesh/cython/mesh_core.o
      g++ -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fcf-protection -fexceptions -fcf-protection -fexceptions -fcf-protection -fexceptions -fPIC -Iinsightface/thirdparty/face3d/mesh/cython -I/tmp/pip-build-env-urihlhmn/overlay/lib64/python3.10/site-packages/numpy/_core/include -I/home/pawanroy/projects/stable-diffusion-webui/venv/include -I/usr/include/python3.10 -c insightface/thirdparty/face3d/mesh/cython/mesh_core_cython.cpp -o build/temp.linux-x86_64-cpython-310/insightface/thirdparty/face3d/mesh/cython/mesh_core_cython.o
      insightface/thirdparty/face3d/mesh/cython/mesh_core_cython.cpp:36:10: fatal error: Python.h: No such file or directory
         36 | #include "Python.h"
            |          ^~~~~~~~~~
      compilation terminated.
      error: command '/usr/bin/g++' failed with exit code 1
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for insightface
Failed to build insightface
ERROR: Failed to build installable wheels for some pyproject.toml based projects (insightface)

Note - I have removed all the logs which contains my system info

As per the Project Page. This should get installed without any issue.

Share Improve this question edited 21 hours ago joanis 12.2k23 gold badges37 silver badges47 bronze badges asked yesterday Pawan RoyPawan Roy 675 bronze badges 4
  • There... is no python -m install? You don't install modules with python itself, you use pip (or another module installer, but 99% of the time, it's just pip). – Mike 'Pomax' Kamermans Commented yesterday
  • Sorry, My mistake. I used python -m pip install insightface==0.7.3. – Pawan Roy Commented yesterday
  • Please trim your code to make it easier to find your problem. Follow these guidelines to create a minimal reproducible example. – Community Bot Commented yesterday
  • Follow-up question, why not just python -m pip install insightface, which automatically picks the most recent, compatible version of that library? What instructions were you following that told you that you specifically needed 0.7.3? – Mike 'Pomax' Kamermans Commented yesterday
Add a comment  | 

1 Answer 1

Reset to default 0

python3.10-devel was required but was not mentioned anywhere

发布评论

评论列表(0)

  1. 暂无评论