Closed HuJunnj closed 1 month ago
Had this happen on my end as well. Fixed it by setting pyenv to python3.10
Had this happen on my end as well. Fixed it by setting pyenv to python3.10
PS D:\GIT\Deep-Live-Cam> pip install -r requirements.txt Defaulting to user installation because normal site-packages is not writeable Looking in indexes: https://pypi.org/simple, https://download.pytorch.org/whl/cu118 Ignoring torch: markers 'sys_platform == "darwin"' don't match your environment Ignoring torchvision: markers 'sys_platform == "darwin"' don't match your environment Ignoring onnxruntime: markers 'sys_platform == "darwin" and platform_machine != "arm64"' don't match your environment Ignoring onnxruntime-silicon: markers 'sys_platform == "darwin" and platform_machine == "arm64"' don't match your environment Ignoring tensorflow: markers 'sys_platform == "darwin"' don't match your environment ERROR: Could not find a version that satisfies the requirement numpy==1.23.5 (from versions: 1.24.1, 1.26.3) ERROR: No matching distribution found for numpy==1.23.5 WARNING: There was an error checking the latest version of pip. PS D:\GIT\Deep-Live-Cam> python --version Python 3.10.6 PS D:\GIT\Deep-Live-Cam>
My python version is 10 now, but error occured still.
thanks in advance. Best Regard Jun
Will someone tell me why? @andreaswissel hi andreaswissel, please tell me why? thanks (.venv) PS D:\GIT\Deep-Live-Cam> pip install insightface==0.7.3 Collecting insightface==0.7.3 Using cached insightface-0.7.3.tar.gz (439 kB) Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... done Requirement already satisfied: numpy in d:\git\deep-live-cam.venv\lib\site-packages (from insightface==0.7.3) (1.23.5) Requirement already satisfied: onnx in d:\git\deep-live-cam.venv\lib\site-packages (from insightface==0.7.3) (1.16.0) Requirement already satisfied: tqdm in d:\git\deep-live-cam.venv\lib\site-packages (from insightface==0.7.3) (4.66.4) Requirement already satisfied: requests in d:\git\deep-live-cam.venv\lib\site-packages (from insightface==0.7.3) (2.32.3) Requirement already satisfied: matplotlib in d:\git\deep-live-cam.venv\lib\site-packages (from insightface==0.7.3) (3.9.2) Requirement already satisfied: Pillow in d:\git\deep-live-cam.venv\lib\site-packages (from insightface==0.7.3) (10.4.0) Requirement already satisfied: scipy in d:\git\deep-live-cam.venv\lib\site-packages (from insightface==0.7.3) (1.14.1) Collecting scikit-learn (from insightface==0.7.3) Obtaining dependency information for scikit-learn from https://files.pythonhosted.org/packages/f1/13/de29b945fb28fc0c24159d3a83f1250c5232c1c9abac12434c7c3447e9cc/scikit_learn-1.5.1-cp310-cp310-win_amd64.whl.metadata Using cached scikit_learn-1.5.1-cp310-cp310-win_amd64.whl.metadata (12 kB) Requirement already satisfied: scikit-image in d:\git\deep-live-cam.venv\lib\site-packages (from insightface==0.7.3) (0.24.0) Collecting easydict (from insightface==0.7.3) Obtaining dependency information for easydict from https://files.pythonhosted.org/packages/05/ec/fa6963f1198172c2b75c9ab6ecefb3045991f92f75f5eb41b6621b198123/easydict-1.13-py3-none-any.whl.metadata Using cached easydict-1.13-py3-none-any.whl.metadata (4.2 kB) Collecting cython (from insightface==0.7.3) Obtaining dependency information for cython from https://files.pythonhosted.org/packages/f9/de/19fdd1c7a52e0534bf5f544e0346c15d71d20338dbd013117f763b94613f/Cython-3.0.11-cp310-cp310-win_amd64.whl.metadata Using cached Cython-3.0.11-cp310-cp310-win_amd64.whl.metadata (3.2 kB) Collecting albumentations (from insightface==0.7.3) Obtaining dependency information for albumentations from https://files.pythonhosted.org/packages/1e/64/27ecc9a9d0861e401c3fea4dc67ac9425d7a29e2ba48518d449618999601/albumentations-1.4.14-py3-none-any.whl.metadata Using cached albumentations-1.4.14-py3-none-any.whl.metadata (38 kB) Collecting prettytable (from insightface==0.7.3) Obtaining dependency information for prettytable from https://files.pythonhosted.org/packages/d9/5a/bfdc26c0e19156992b1dc9de47f0b2e8992fe43db9981d814f860bdce2b3/prettytable-3.11.0-py3-none-any.whl.metadata Using cached prettytable-3.11.0-py3-none-any.whl.metadata (30 kB) Collecting numpy (from insightface==0.7.3) Obtaining dependency information for numpy from https://files.pythonhosted.org/packages/97/fc/961ce4fe1b3295b30ff85a0bc6da13302b870643ed9a79c034fb8469e333/numpy-2.1.0-cp310-cp310-win_amd64.whl.metadata Using cached numpy-2.1.0-cp310-cp310-win_amd64.whl.metadata (59 kB) Collecting PyYAML (from albumentations->insightface==0.7.3) Obtaining dependency information for PyYAML from https://files.pythonhosted.org/packages/b5/84/0fa4b06f6d6c958d207620fc60005e241ecedceee58931bb20138e1e5776/PyYAML-6.0.2-cp310-cp310-win_amd64.whl.metadata Using cached PyYAML-6.0.2-cp310-cp310-win_amd64.whl.metadata (2.1 kB) Requirement already satisfied: typing-extensions>=4.9.0 in d:\git\deep-live-cam.venv\lib\site-packages (from albumentations->insightface==0.7.3) (4.12.2) Collecting pydantic>=2.7.0 (from albumentations->insightface==0.7.3) Obtaining dependency information for pydantic>=2.7.0 from https://files.pythonhosted.org/packages/1f/fa/b7f815b8c9ad021c07f88875b601222ef5e70619391ade4a49234d12d278/pydantic-2.8.2-py3-none-any.whl.metadata Using cached pydantic-2.8.2-py3-none-any.whl.metadata (125 kB) Collecting albucore>=0.0.13 (from albumentations->insightface==0.7.3) Obtaining dependency information for albucore>=0.0.13 from https://files.pythonhosted.org/packages/f3/24/0c808a71a94deb9bb4bad44073f206e910a6b36895436482d79b65b9474e/albucore-0.0.14-py3-none-any.whl.metadata Using cached albucore-0.0.14-py3-none-any.whl.metadata (3.1 kB) Collecting eval-type-backport (from albumentations->insightface==0.7.3) Obtaining dependency information for eval-type-backport from https://files.pythonhosted.org/packages/ac/ac/aa3d8e0acbcd71140420bc752d7c9779cf3a2a3bb1d7ef30944e38b2cd39/eval_type_backport-0.2.0-py3-none-any.whl.metadata Using cached eval_type_backport-0.2.0-py3-none-any.whl.metadata (2.2 kB) Collecting opencv-python-headless>=4.9.0.80 (from albumentations->insightface==0.7.3) Obtaining dependency information for opencv-python-headless>=4.9.0.80 from https://files.pythonhosted.org/packages/26/d0/22f68eb23eea053a31655960f133c0be9726c6a881547e6e9e7e2a946c4f/opencv_python_headless-4.10.0.84-cp37-abi3-win_amd64.whl.metadata Using cached opencv_python_headless-4.10.0.84-cp37-abi3-win_amd64.whl.metadata (20 kB) Requirement already satisfied: networkx>=2.8 in d:\git\deep-live-cam.venv\lib\site-packages (from scikit-image->insightface==0.7.3) (3.3) Requirement already satisfied: imageio>=2.33 in d:\git\deep-live-cam.venv\lib\site-packages (from scikit-image->insightface==0.7.3) (2.35.1) Requirement already satisfied: tifffile>=2022.8.12 in d:\git\deep-live-cam.venv\lib\site-packages (from scikit-image->insightface==0.7.3) (2024.8.28) Requirement already satisfied: packaging>=21 in d:\git\deep-live-cam.venv\lib\site-packages (from scikit-image->insightface==0.7.3) (24.1) Requirement already satisfied: lazy-loader>=0.4 in d:\git\deep-live-cam.venv\lib\site-packages (from scikit-image->insightface==0.7.3) (0.4) Requirement already satisfied: contourpy>=1.0.1 in d:\git\deep-live-cam.venv\lib\site-packages (from matplotlib->insightface==0.7.3) (1.3.0) Requirement already satisfied: cycler>=0.10 in d:\git\deep-live-cam.venv\lib\site-packages (from matplotlib->insightface==0.7.3) (0.12.1) Requirement already satisfied: fonttools>=4.22.0 in d:\git\deep-live-cam.venv\lib\site-packages (from matplotlib->insightface==0.7.3) (4.53.1) Requirement already satisfied: kiwisolver>=1.3.1 in d:\git\deep-live-cam.venv\lib\site-packages (from matplotlib->insightface==0.7.3) (1.4.5) Requirement already satisfied: pyparsing>=2.3.1 in d:\git\deep-live-cam.venv\lib\site-packages (from matplotlib->insightface==0.7.3) (3.1.4) Requirement already satisfied: python-dateutil>=2.7 in d:\git\deep-live-cam.venv\lib\site-packages (from matplotlib->insightface==0.7.3) (2.9.0.post0) Requirement already satisfied: protobuf>=3.20.2 in d:\git\deep-live-cam.venv\lib\site-packages (from onnx->insightface==0.7.3) (4.25.4) Collecting wcwidth (from prettytable->insightface==0.7.3) Obtaining dependency information for wcwidth from https://files.pythonhosted.org/packages/fd/84/fd2ba7aafacbad3c4201d395674fc6348826569da3c0937e75505ead3528/wcwidth-0.2.13-py2.py3-none-any.whl.metadata Using cached wcwidth-0.2.13-py2.py3-none-any.whl.metadata (14 kB) Requirement already satisfied: charset-normalizer<4,>=2 in d:\git\deep-live-cam.venv\lib\site-packages (from requests->insightface==0.7.3) (3.3.2) Requirement already satisfied: idna<4,>=2.5 in d:\git\deep-live-cam.venv\lib\site-packages (from requests->insightface==0.7.3) (3.8) Requirement already satisfied: urllib3<3,>=1.21.1 in d:\git\deep-live-cam.venv\lib\site-packages (from requests->insightface==0.7.3) (2.2.2) Requirement already satisfied: certifi>=2017.4.17 in d:\git\deep-live-cam.venv\lib\site-packages (from requests->insightface==0.7.3) (2024.8.30) Collecting joblib>=1.2.0 (from scikit-learn->insightface==0.7.3) Obtaining dependency information for joblib>=1.2.0 from https://files.pythonhosted.org/packages/91/29/df4b9b42f2be0b623cbd5e2140cafcaa2bef0759a00b7b70104dcfe2fb51/joblib-1.4.2-py3-none-any.whl.metadata Using cached joblib-1.4.2-py3-none-any.whl.metadata (5.4 kB) Collecting threadpoolctl>=3.1.0 (from scikit-learn->insightface==0.7.3) Obtaining dependency information for threadpoolctl>=3.1.0 from https://files.pythonhosted.org/packages/4b/2c/ffbf7a134b9ab11a67b0cf0726453cedd9c5043a4fe7a35d1cefa9a1bcfb/threadpoolctl-3.5.0-py3-none-any.whl.metadata Using cached threadpoolctl-3.5.0-py3-none-any.whl.metadata (13 kB) Requirement already satisfied: colorama in d:\git\deep-live-cam.venv\lib\site-packages (from tqdm->insightface==0.7.3) (0.4.6) Collecting annotated-types>=0.4.0 (from pydantic>=2.7.0->albumentations->insightface==0.7.3) Obtaining dependency information for annotated-types>=0.4.0 from https://files.pythonhosted.org/packages/78/b6/6307fbef88d9b5ee7421e68d78a9f162e0da4900bc5f5793f6d3d0e34fb8/annotated_types-0.7.0-py3-none-any.whl.metadata Using cached annotated_types-0.7.0-py3-none-any.whl.metadata (15 kB) Collecting pydantic-core==2.20.1 (from pydantic>=2.7.0->albumentations->insightface==0.7.3) Obtaining dependency information for pydantic-core==2.20.1 from https://files.pythonhosted.org/packages/be/4a/576524eefa9b301c088c4818dc50ff1c51a88fe29efd87ab75748ae15fd7/pydantic_core-2.20.1-cp310-none-win_amd64.whl.metadata Using cached pydantic_core-2.20.1-cp310-none-win_amd64.whl.metadata (6.7 kB) Requirement already satisfied: six>=1.5 in d:\git\deep-live-cam.venv\lib\site-packages (from python-dateutil>=2.7->matplotlib->insightface==0.7.3) (1.16.0) Using cached albumentations-1.4.14-py3-none-any.whl (177 kB) Using cached numpy-2.1.0-cp310-cp310-win_amd64.whl (12.9 MB) Using cached Cython-3.0.11-cp310-cp310-win_amd64.whl (2.8 MB) Using cached easydict-1.13-py3-none-any.whl (6.8 kB) Using cached prettytable-3.11.0-py3-none-any.whl (28 kB) Using cached scikit_learn-1.5.1-cp310-cp310-win_amd64.whl (11.0 MB) Using cached albucore-0.0.14-py3-none-any.whl (8.5 kB) Using cached joblib-1.4.2-py3-none-any.whl (301 kB) Using cached opencv_python_headless-4.10.0.84-cp37-abi3-win_amd64.whl (38.8 MB) Using cached pydantic-2.8.2-py3-none-any.whl (423 kB) Using cached pydantic_core-2.20.1-cp310-none-win_amd64.whl (1.9 MB) Using cached threadpoolctl-3.5.0-py3-none-any.whl (18 kB) Using cached eval_type_backport-0.2.0-py3-none-any.whl (5.9 kB) Using cached PyYAML-6.0.2-cp310-cp310-win_amd64.whl (161 kB) Using cached wcwidth-0.2.13-py2.py3-none-any.whl (34 kB) Using cached annotated_types-0.7.0-py3-none-any.whl (13 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
╰─> [215 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'
C:\Users\19704\AppData\Local\Temp\pip-build-env-hol331x9\overlay\Lib\site-packages\setuptools\command\build_py.py:218: _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\19704\AppData\Local\Temp\pip-build-env-hol331x9\overlay\Lib\site-packages\setuptools\command\build_py.py:218: _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\19704\AppData\Local\Temp\pip-build-env-hol331x9\overlay\Lib\site-packages\setuptools\command\build_py.py:218: _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-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.h -> 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_cython.c -> 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
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
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
[notice] A new release of pip is available: 23.2.1 -> 24.2 [notice] To update, run: python.exe -m pip install --upgrade pip
ERROR: Exception: Traceback (most recent call last): File "C:\Program Files\Python311\Lib\site-packages\pip_vendor\urllib3\response.py", line 438, in _error_catcher yield File "C:\Program Files\Python311\Lib\site-packages\pip_vendor\urllib3\response.py", line 561, in read data = self._fp_read(amt) if not fp_closed else b"" ^^^^^^^^^^^^^^^^^^ File "C:\Program Files\Python311\Lib\site-packages\pip_vendor\urllib3\response.py", line 527, in _fp_read return self._fp.read(amt) if amt is not None else self._fp.read() ^^^^^^^^^^^^^^^^^^ File "C:\Program Files\Python311\Lib\site-packages\pip_vendor\cachecontrol\filewrapper.py", line 98, in read data: bytes = self.__fp.read(amt) ^^^^^^^^^^^^^^^^^^^ File "C:\Program Files\Python311\Lib\http\client.py", line 473, in read s = self.fp.read(amt) ^^^^^^^^^^^^^^^^^ File "C:\Program Files\Python311\Lib\socket.py", line 706, in readinto return self._sock.recv_into(b) ^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Program Files\Python311\Lib\ssl.py", line 1314, in recv_into return self.read(nbytes, buffer) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Program Files\Python311\Lib\ssl.py", line 1166, in read return self._sslobj.read(len, buffer) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TimeoutError: The read operation timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "C:\Program Files\Python311\Lib\site-packages\pip_internal\cli\base_command.py", line 180, in exc_logging_wrapper status = run_func(*args) ^^^^^^^^^^^^^^^ File "C:\Program Files\Python311\Lib\site-packages\pip_internal\cli\req_command.py", line 245, in wrapper return func(self, options, args) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Program Files\Python311\Lib\site-packages\pip_internal\commands\install.py", line 377, in run requirement_set = resolver.resolve( ^^^^^^^^^^^^^^^^^ File "C:\Program Files\Python311\Lib\site-packages\pip_internal\resolution\resolvelib\resolver.py", line 95, in resolve result = self._result = resolver.resolve( ^^^^^^^^^^^^^^^^^ File "C:\Program Files\Python311\Lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 546, in resolve state = resolution.resolve(requirements, max_rounds=max_rounds) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Program Files\Python311\Lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 397, in resolve self._add_to_criteria(self.state.criteria, r, parent=None) File "C:\Program Files\Python311\Lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 173, in _add_to_criteria if not criterion.candidates: File "C:\Program Files\Python311\Lib\site-packages\pip_vendor\resolvelib\structs.py", line 156, in bool return bool(self._sequence) ^^^^^^^^^^^^^^^^^^^^ File "C:\Program Files\Python311\Lib\site-packages\pip_internal\resolution\resolvelib\found_candidates.py", line 155, in bool return any(self) ^^^^^^^^^ File "C:\Program Files\Python311\Lib\site-packages\pip_internal\resolution\resolvelib\found_candidates.py", line 143, in
return (c for c in iterator if id(c) not in self._incompatible_ids)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python311\Lib\site-packages\pip_internal\resolution\resolvelib\found_candidates.py", line 47, in _iter_built
candidate = func()
^^^^^^
File "C:\Program Files\Python311\Lib\site-packages\pip_internal\resolution\resolvelib\factory.py", line 182, in _make_candidate_from_link
base: Optional[BaseCandidate] = self._make_base_candidate_from_link(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python311\Lib\site-packages\pip_internal\resolution\resolvelib\factory.py", line 228, in _make_base_candidate_from_link
self._link_candidate_cache[link] = LinkCandidate(
^^^^^^^^^^^^^^
File "C:\Program Files\Python311\Lib\site-packages\pip_internal\resolution\resolvelib\candidates.py", line 290, in init
super().init(
File "C:\Program Files\Python311\Lib\site-packages\pip_internal\resolution\resolvelib\candidates.py", line 156, in init
self.dist = self._prepare()
^^^^^^^^^^^^^^^
File "C:\Program Files\Python311\Lib\site-packages\pip_internal\resolution\resolvelib\candidates.py", line 222, in _prepare
dist = self._prepare_distribution()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python311\Lib\site-packages\pip_internal\resolution\resolvelib\candidates.py", line 301, in _prepare_distribution
return preparer.prepare_linked_requirement(self._ireq, parallel_builds=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python311\Lib\site-packages\pip_internal\operations\prepare.py", line 525, in prepare_linked_requirement
return self._prepare_linked_requirement(req, parallel_builds)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python311\Lib\site-packages\pip_internal\operations\prepare.py", line 596, in _prepare_linked_requirement
local_file = unpack_url(
^^^^^^^^^^^
File "C:\Program Files\Python311\Lib\site-packages\pip_internal\operations\prepare.py", line 168, in unpack_url
file = get_http_url(
^^^^^^^^^^^^^
File "C:\Program Files\Python311\Lib\site-packages\pip_internal\operations\prepare.py", line 109, in get_http_url
from_path, content_type = download(link, temp_dir.path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python311\Lib\site-packages\pip_internal\network\download.py", line 147, in call
for chunk in chunks:
File "C:\Program Files\Python311\Lib\site-packages\pip_internal\cli\progress_bars.py", line 53, in _rich_progress_bar
for chunk in iterable:
File "C:\Program Files\Python311\Lib\site-packages\pip_internal\network\utils.py", line 63, in response_chunks
for chunk in response.raw.stream(
File "C:\Program Files\Python311\Lib\site-packages\pip_vendor\urllib3\response.py", line 622, in stream
data = self.read(amt=amt, decode_content=decode_content)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python311\Lib\site-packages\pip_vendor\urllib3\response.py", line 560, in read
with self._error_catcher():
File "C:\Program Files\Python311\Lib\contextlib.py", line 158, in exit
self.gen.throw(typ, value, traceback)
File "C:\Program Files\Python311\Lib\site-packages\pip_vendor\urllib3\response.py", line 443, in _error_catcher
raise ReadTimeoutError(self._pool, None, "Read timed out.")
pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out.
[notice] A new release of pip is available: 24.0 -> 24.2 [notice] To update, run: python.exe -m pip install --upgrade pip
Best Regards Jun