s0md3v / sd-webui-roop

roop extension for StableDiffusion web-ui
GNU Affero General Public License v3.0
3.36k stars 857 forks source link

Could not build wheels for insightface, which is required to install pyproject.toml-based projects #135

Closed kevinzpk closed 1 year ago

kevinzpk commented 1 year ago

I have installed Visual Studio with python and c++. Also have install insightface after activated the venv in sd-webui\py310 folder.

Notes: Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple Requirement already satisfied: insightface==0.7.3 in e:\python310\lib\site-packages (0.7.3) Requirement already satisfied: numpy in e:\python310\lib\site-packages (from insightface==0.7.3) (1.24.2) Requirement already satisfied: onnx in e:\python310\lib\site-packages (from insightface==0.7.3) (1.14.0) Requirement already satisfied: tqdm in e:\python310\lib\site-packages (from insightface==0.7.3) (4.65.0) Requirement already satisfied: requests in e:\python310\lib\site-packages (from insightface==0.7.3) (2.28.2) Requirement already satisfied: matplotlib in e:\python310\lib\site-packages (from insightface==0.7.3) (3.7.1) Requirement already satisfied: Pillow in e:\python310\lib\site-packages (from insightface==0.7.3) (9.4.0) Requirement already satisfied: scipy in e:\python310\lib\site-packages (from insightface==0.7.3) (1.11.1) Requirement already satisfied: scikit-learn in e:\python310\lib\site-packages (from insightface==0.7.3) (1.3.0) Requirement already satisfied: scikit-image in e:\python310\lib\site-packages (from insightface==0.7.3) (0.21.0) Requirement already satisfied: easydict in e:\python310\lib\site-packages (from insightface==0.7.3) (1.10) Requirement already satisfied: cython in e:\python310\lib\site-packages (from insightface==0.7.3) (0.29.35) Requirement already satisfied: albumentations in e:\python310\lib\site-packages (from insightface==0.7.3) (1.3.1) Requirement already satisfied: prettytable in e:\python310\lib\site-packages (from insightface==0.7.3) (3.8.0) Requirement already satisfied: PyYAML in e:\python310\lib\site-packages (from albumentations->insightface==0.7.3) (6.0) Requirement already satisfied: qudida>=0.0.4 in e:\python310\lib\site-packages (from albumentations->insightface==0.7.3) (0.0.4) Requirement already satisfied: opencv-python-headless>=4.1.1 in e:\python310\lib\site-packages (from albumentations->insightface==0.7.3) (4.8.0.74) Requirement already satisfied: networkx>=2.8 in e:\python310\lib\site-packages (from scikit-image->insightface==0.7.3) (3.1) Requirement already satisfied: imageio>=2.27 in e:\python310\lib\site-packages (from scikit-image->insightface==0.7.3) (2.31.1) Requirement already satisfied: tifffile>=2022.8.12 in e:\python310\lib\site-packages (from scikit-image->insightface==0.7.3) (2023.4.12) Requirement already satisfied: PyWavelets>=1.1.1 in e:\python310\lib\site-packages (from scikit-image->insightface==0.7.3) (1.4.1) Requirement already satisfied: packaging>=21 in e:\python310\lib\site-packages (from scikit-image->insightface==0.7.3) (23.1) Requirement already satisfied: lazy_loader>=0.2 in e:\python310\lib\site-packages (from scikit-image->insightface==0.7.3) (0.3) Requirement already satisfied: contourpy>=1.0.1 in e:\python310\lib\site-packages (from matplotlib->insightface==0.7.3) (1.1.0) Requirement already satisfied: cycler>=0.10 in e:\python310\lib\site-packages (from matplotlib->insightface==0.7.3) (0.11.0) Requirement already satisfied: fonttools>=4.22.0 in e:\python310\lib\site-packages (from matplotlib->insightface==0.7.3) (4.40.0) Requirement already satisfied: kiwisolver>=1.0.1 in e:\python310\lib\site-packages (from matplotlib->insightface==0.7.3) (1.4.4) Requirement already satisfied: pyparsing>=2.3.1 in e:\python310\lib\site-packages (from matplotlib->insightface==0.7.3) (3.0.9) Requirement already satisfied: python-dateutil>=2.7 in e:\python310\lib\site-packages (from matplotlib->insightface==0.7.3) (2.8.2) Requirement already satisfied: protobuf>=3.20.2 in e:\python310\lib\site-packages (from onnx->insightface==0.7.3) (4.22.3) Requirement already satisfied: typing-extensions>=3.6.2.1 in e:\python310\lib\site-packages (from onnx->insightface==0.7.3) (4.5.0) Requirement already satisfied: wcwidth in e:\python310\lib\site-packages (from prettytable->insightface==0.7.3) (0.2.6) Requirement already satisfied: charset-normalizer<4,>=2 in e:\python310\lib\site-packages (from requests->insightface==0.7.3) (3.1.0) Requirement already satisfied: idna<4,>=2.5 in e:\python310\lib\site-packages (from requests->insightface==0.7.3) (3.4) Requirement already satisfied: urllib3<1.27,>=1.21.1 in e:\python310\lib\site-packages (from requests->insightface==0.7.3) (1.26.15) Requirement already satisfied: certifi>=2017.4.17 in e:\python310\lib\site-packages (from requests->insightface==0.7.3) (2022.12.7) Requirement already satisfied: joblib>=1.1.1 in e:\python310\lib\site-packages (from scikit-learn->insightface==0.7.3) (1.3.1) Requirement already satisfied: threadpoolctl>=2.0.0 in e:\python310\lib\site-packages (from scikit-learn->insightface==0.7.3) (3.1.0) Requirement already satisfied: colorama in e:\python310\lib\site-packages (from tqdm->insightface==0.7.3) (0.4.6) Requirement already satisfied: six>=1.5 in e:\python310\lib\site-packages (from python-dateutil>=2.7->matplotlib->insightface==0.7.3) (1.16.0)

Then use url install in "Extensions" tab, but show errors. Error notes: Error running install.py for extension H:\sd-webui-aki-v4\extensions\sd-webui-roop. Command: "H:\sd-webui-aki-v4\py310\python.exe" "H:\sd-webui-aki-v4\extensions\sd-webui-roop\install.py" Error code: 1 stdout: Checking roop requirements Install insightface==0.7.3 Installing sd-webui-roop requirement: insightface==0.7.3 Couldn't install sd-webui-roop requirement: insightface==0.7.3. Command: "H:\sd-webui-aki-v4\py310\python.exe" -m pip install insightface==0.7.3 --prefer-binary --index-url https://mirror.baidu.com/pypi/simple Error code: 1 stdout: Looking in indexes: https://mirror.baidu.com/pypi/simple, https://mirrors.aliyun.com/pypi/simple Looking in links: https://mirror.sjtu.edu.cn/pytorch-wheels/torch_stable.html Collecting insightface==0.7.3 Using cached https://mirrors.aliyun.com/pypi/packages/0b/8d/0f4af90999ca96cf8cb846eb5ae27c5ef5b390f9c090dd19e4fa76364c13/insightface-0.7.3.tar.gz (439 kB) Installing build dependencies: started Installing build dependencies: finished with status 'done' Getting requirements to build wheel: started Getting requirements to build wheel: finished with status 'done' Installing backend dependencies: started Installing backend dependencies: finished with status 'done' Preparing metadata (pyproject.toml): started Preparing metadata (pyproject.toml): finished with status 'done' Requirement already satisfied: numpy in h:\sd-webui-aki-v4\py310\lib\site-packages (from insightface==0.7.3) (1.23.5) Collecting onnx (from insightface==0.7.3) Using cached https://mirrors.aliyun.com/pypi/packages/22/5c/46298252ea9f92b6b94184e8f001e575f2c346a22011498110fd032fc921/onnx-1.14.0-cp310-cp310-win_amd64.whl (13.3 MB) Requirement already satisfied: tqdm in h:\sd-webui-aki-v4\py310\lib\site-packages (from insightface==0.7.3) (4.65.0) Requirement already satisfied: requests in h:\sd-webui-aki-v4\py310\lib\site-packages (from insightface==0.7.3) (2.25.1) Requirement already satisfied: matplotlib in h:\sd-webui-aki-v4\py310\lib\site-packages (from insightface==0.7.3) (3.7.1) Requirement already satisfied: Pillow in h:\sd-webui-aki-v4\py310\lib\site-packages (from insightface==0.7.3) (9.5.0) Requirement already satisfied: scipy in h:\sd-webui-aki-v4\py310\lib\site-packages (from insightface==0.7.3) (1.10.1) Collecting scikit-learn (from insightface==0.7.3) Using cached https://mirrors.aliyun.com/pypi/packages/96/cf/a714a655266229b51eb2bda117f15275f12457887f165f3c1cc58ab502f1/scikit_learn-1.3.0-cp310-cp310-win_amd64.whl (9.2 MB) Requirement already satisfied: scikit-image in h:\sd-webui-aki-v4\py310\lib\site-packages (from insightface==0.7.3) (0.20.0) Collecting easydict (from insightface==0.7.3) Using cached easydict-1.10-py3-none-any.whl Requirement already satisfied: cython in h:\sd-webui-aki-v4\py310\lib\site-packages (from insightface==0.7.3) (0.29.35) Collecting albumentations (from insightface==0.7.3) Using cached https://mirrors.aliyun.com/pypi/packages/9b/f6/c486cedb4f75147232f32ec4c97026714cfef7c7e247a1f0427bc5489f66/albumentations-1.3.1-py3-none-any.whl (125 kB) Collecting prettytable (from insightface==0.7.3) Using cached https://mirrors.aliyun.com/pypi/packages/25/1e/4c284713b092ec384fad4399452f43f6446ad9aabc9c0b3c3c0920cc53b6/prettytable-3.8.0-py3-none-any.whl (27 kB) Requirement already satisfied: PyYAML in h:\sd-webui-aki-v4\py310\lib\site-packages (from albumentations->insightface==0.7.3) (6.0) Collecting qudida>=0.0.4 (from albumentations->insightface==0.7.3) Using cached https://mirrors.aliyun.com/pypi/packages/f0/a1/a5f4bebaa31d109003909809d88aeb0d4b201463a9ea29308d9e4f9e7655/qudida-0.0.4-py3-none-any.whl (3.5 kB) Collecting opencv-python-headless>=4.1.1 (from albumentations->insightface==0.7.3) Using cached https://mirrors.aliyun.com/pypi/packages/60/e7/a6dedca760db7a4686fd3b6053487ad4ad4d8f0591295dc8a9cf35269c42/opencv_python_headless-4.8.0.74-cp37-abi3-win_amd64.whl (38.0 MB) Requirement already satisfied: networkx>=2.8 in h:\sd-webui-aki-v4\py310\lib\site-packages (from scikit-image->insightface==0.7.3) (3.0) Requirement already satisfied: imageio>=2.4.1 in h:\sd-webui-aki-v4\py310\lib\site-packages (from scikit-image->insightface==0.7.3) (2.27.0) Requirement already satisfied: tifffile>=2019.7.26 in h:\sd-webui-aki-v4\py310\lib\site-packages (from scikit-image->insightface==0.7.3) (2023.4.12) Requirement already satisfied: PyWavelets>=1.1.1 in h:\sd-webui-aki-v4\py310\lib\site-packages (from scikit-image->insightface==0.7.3) (1.4.1) Requirement already satisfied: packaging>=20.0 in h:\sd-webui-aki-v4\py310\lib\site-packages (from scikit-image->insightface==0.7.3) (23.1) Requirement already satisfied: lazy_loader>=0.1 in h:\sd-webui-aki-v4\py310\lib\site-packages (from scikit-image->insightface==0.7.3) (0.2) Requirement already satisfied: contourpy>=1.0.1 in h:\sd-webui-aki-v4\py310\lib\site-packages (from matplotlib->insightface==0.7.3) (1.0.7) Requirement already satisfied: cycler>=0.10 in h:\sd-webui-aki-v4\py310\lib\site-packages (from matplotlib->insightface==0.7.3) (0.11.0) Requirement already satisfied: fonttools>=4.22.0 in h:\sd-webui-aki-v4\py310\lib\site-packages (from matplotlib->insightface==0.7.3) (4.39.3) Requirement already satisfied: kiwisolver>=1.0.1 in h:\sd-webui-aki-v4\py310\lib\site-packages (from matplotlib->insightface==0.7.3) (1.4.4) Requirement already satisfied: pyparsing>=2.3.1 in h:\sd-webui-aki-v4\py310\lib\site-packages (from matplotlib->insightface==0.7.3) (3.0.9) Requirement already satisfied: python-dateutil>=2.7 in h:\sd-webui-aki-v4\py310\lib\site-packages (from matplotlib->insightface==0.7.3) (2.8.2) Requirement already satisfied: protobuf>=3.20.2 in h:\sd-webui-aki-v4\py310\lib\site-packages (from onnx->insightface==0.7.3) (4.23.3) Requirement already satisfied: typing-extensions>=3.6.2.1 in h:\sd-webui-aki-v4\py310\lib\site-packages (from onnx->insightface==0.7.3) (4.4.0) Requirement already satisfied: wcwidth in h:\sd-webui-aki-v4\py310\lib\site-packages (from prettytable->insightface==0.7.3) (0.2.6) Requirement already satisfied: chardet<5,>=3.0.2 in h:\sd-webui-aki-v4\py310\lib\site-packages (from requests->insightface==0.7.3) (4.0.0) Requirement already satisfied: idna<3,>=2.5 in h:\sd-webui-aki-v4\py310\lib\site-packages (from requests->insightface==0.7.3) (2.10) Requirement already satisfied: urllib3<1.27,>=1.21.1 in h:\sd-webui-aki-v4\py310\lib\site-packages (from requests->insightface==0.7.3) (1.26.13) Requirement already satisfied: certifi>=2017.4.17 in h:\sd-webui-aki-v4\py310\lib\site-packages (from requests->insightface==0.7.3) (2022.12.7) Collecting joblib>=1.1.1 (from scikit-learn->insightface==0.7.3) Using cached https://mirrors.aliyun.com/pypi/packages/28/08/9dcdaa5aac4634e4c23af26d92121f7ce445c630efa0d3037881ae2407fb/joblib-1.3.1-py3-none-any.whl (301 kB) Collecting threadpoolctl>=2.0.0 (from scikit-learn->insightface==0.7.3) Using cached https://mirrors.aliyun.com/pypi/packages/61/cf/6e354304bcb9c6413c4e02a747b600061c21d38ba51e7e544ac7bc66aecc/threadpoolctl-3.1.0-py3-none-any.whl (14 kB) Requirement already satisfied: colorama in h:\sd-webui-aki-v4\py310\lib\site-packages (from tqdm->insightface==0.7.3) (0.4.6) Requirement already satisfied: six>=1.5 in h:\sd-webui-aki-v4\py310\lib\site-packages (from python-dateutil>=2.7->matplotlib->insightface==0.7.3) (1.16.0) Building wheels for collected packages: insightface Building wheel for insightface (pyproject.toml): started Building wheel for insightface (pyproject.toml): finished with status 'error' *** Failed to build insightface


*** stderr: error: subprocess-exited-with-error


× Building wheel for insightface (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [187 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' H:\sd-webui-aki-v4\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) H:\sd-webui-aki-v4\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) H:\sd-webui-aki-v4\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 "D:\Program Files\VisualStudio\VC\Tools\MSVC\14.36.32532\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -Iinsightface/thirdparty/face3d/mesh/cython -IH:\sd-webui-aki-v4\py310\lib\site-packages\numpy\core\include -IH:\sd-webui-aki-v4\py310\include -IH:\sd-webui-aki-v4\py310\Include "-ID:\Program Files\VisualStudio\VC\Tools\MSVC\14.36.32532\include" "-ID:\Program Files\VisualStudio\VC\Tools\MSVC\14.36.32532\ATLMFC\include" "-ID:\Program Files\VisualStudio\VC\Auxiliary\VS\include" "-ID:\Windows Kits\10\include\10.0.22000.0\ucrt" "-ID:\Windows Kits\10\include\10.0.22000.0\um" "-ID:\Windows Kits\10\include\10.0.22000.0\shared" "-ID:\Windows Kits\10\include\10.0.22000.0\winrt" "-ID:\Windows Kits\10\include\10.0.22000.0\cppwinrt" /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: \xa1\xb0=\xa1\xb1: \xb4ӡ\xb0int\xa1\xb1ת\xbb\xbb\xb5\xbd\xa1\xb0float\xa1\xb1\xa3\xac\xbf\xc9\xc4ܶ\xaaʧ\xca\xfd\xbe\xdd insightface/thirdparty/face3d/mesh/cython/mesh_core.cpp(147): warning C4244: \xa1\xb0=\xa1\xb1: \xb4ӡ\xb0int\xa1\xb1ת\xbb\xbb\xb5\xbd\xa1\xb0float\xa1\xb1\xa3\xac\xbf\xc9\xc4ܶ\xaaʧ\xca\xfd\xbe\xdd insightface/thirdparty/face3d/mesh/cython/mesh_core.cpp(210): warning C4244: \xa1\xb0=\xa1\xb1: \xb4ӡ\xb0int\xa1\xb1ת\xbb\xbb\xb5\xbd\xa1\xb0float\xa1\xb1\xa3\xac\xbf\xc9\xc4ܶ\xaaʧ\xca\xfd\xbe\xdd insightface/thirdparty/face3d/mesh/cython/mesh_core.cpp(210): warning C4244: \xa1\xb0=\xa1\xb1: \xb4ӡ\xb0int\xa1\xb1ת\xbb\xbb\xb5\xbd\xa1\xb0float\xa1\xb1\xa3\xac\xbf\xc9\xc4ܶ\xaaʧ\xca\xfd\xbe\xdd insightface/thirdparty/face3d/mesh/cython/mesh_core.cpp(294): warning C4244: \xa1\xb0=\xa1\xb1: \xb4ӡ\xb0int\xa1\xb1ת\xbb\xbb\xb5\xbd\xa1\xb0float\xa1\xb1\xa3\xac\xbf\xc9\xc4ܶ\xaaʧ\xca\xfd\xbe\xdd insightface/thirdparty/face3d/mesh/cython/mesh_core.cpp(294): warning C4244: \xa1\xb0=\xa1\xb1: \xb4ӡ\xb0int\xa1\xb1ת\xbb\xbb\xb5\xbd\xa1\xb0float\xa1\xb1\xa3\xac\xbf\xc9\xc4ܶ\xaaʧ\xca\xfd\xbe\xdd "D:\Program Files\VisualStudio\VC\Tools\MSVC\14.36.32532\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -Iinsightface/thirdparty/face3d/mesh/cython -IH:\sd-webui-aki-v4\py310\lib\site-packages\numpy\core\include -IH:\sd-webui-aki-v4\py310\include -IH:\sd-webui-aki-v4\py310\Include "-ID:\Program Files\VisualStudio\VC\Tools\MSVC\14.36.32532\include" "-ID:\Program Files\VisualStudio\VC\Tools\MSVC\14.36.32532\ATLMFC\include" "-ID:\Program Files\VisualStudio\VC\Auxiliary\VS\include" "-ID:\Windows Kits\10\include\10.0.22000.0\ucrt" "-ID:\Windows Kits\10\include\10.0.22000.0\um" "-ID:\Windows Kits\10\include\10.0.22000.0\shared" "-ID:\Windows Kits\10\include\10.0.22000.0\winrt" "-ID:\Windows Kits\10\include\10.0.22000.0\cppwinrt" /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 insightface/thirdparty/face3d/mesh/cython/mesh_core_cython.cpp(26): fatal error C1083: \xce޷\xa8\xb4򿪰\xfc\xc0\xa8\xceļ\xfe: \xa1\xb0Python.h\xa1\xb1: No such file or directory error: command 'D:\Program Files\VisualStudio\VC\Tools\MSVC\14.36.32532\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 *** ERROR: Could not build wheels for insightface, which is required to install pyproject.toml-based projects


*** Warning: Failed to install insightface==0.7.3, roop will not work.


stderr: Traceback (most recent call last): File "H:\sd-webui-aki-v4\extensions\sd-webui-roop\install.py", line 54, in raise e File "H:\sd-webui-aki-v4\extensions\sd-webui-roop\install.py", line 36, in launch.run_pip( File "H:\sd-webui-aki-v4\modules\launch_utils.py", line 130, in run_pip return run(f'"{python}" -m pip {command} --prefer-binary{index_url_line}', desc=f"Installing {desc}", errdesc=f"Couldn't install {desc}", live=live) File "H:\sd-webui-aki-v4\modules\launch_utils.py", line 107, in run raise RuntimeError("\n".join(error_bits)) RuntimeError: Couldn't install sd-webui-roop requirement: insightface==0.7.3. Command: "H:\sd-webui-aki-v4\py310\python.exe" -m pip install insightface==0.7.3 --prefer-binary --index-url https://mirror.baidu.com/pypi/simple Error code: 1 stdout: Looking in indexes: https://mirror.baidu.com/pypi/simple, https://mirrors.aliyun.com/pypi/simple Looking in links: https://mirror.sjtu.edu.cn/pytorch-wheels/torch_stable.html Collecting insightface==0.7.3 Using cached https://mirrors.aliyun.com/pypi/packages/0b/8d/0f4af90999ca96cf8cb846eb5ae27c5ef5b390f9c090dd19e4fa76364c13/insightface-0.7.3.tar.gz (439 kB) Installing build dependencies: started Installing build dependencies: finished with status 'done' Getting requirements to build wheel: started Getting requirements to build wheel: finished with status 'done' Installing backend dependencies: started Installing backend dependencies: finished with status 'done' Preparing metadata (pyproject.toml): started Preparing metadata (pyproject.toml): finished with status 'done' Requirement already satisfied: numpy in h:\sd-webui-aki-v4\py310\lib\site-packages (from insightface==0.7.3) (1.23.5) Collecting onnx (from insightface==0.7.3) Using cached https://mirrors.aliyun.com/pypi/packages/22/5c/46298252ea9f92b6b94184e8f001e575f2c346a22011498110fd032fc921/onnx-1.14.0-cp310-cp310-win_amd64.whl (13.3 MB) Requirement already satisfied: tqdm in h:\sd-webui-aki-v4\py310\lib\site-packages (from insightface==0.7.3) (4.65.0) Requirement already satisfied: requests in h:\sd-webui-aki-v4\py310\lib\site-packages (from insightface==0.7.3) (2.25.1) Requirement already satisfied: matplotlib in h:\sd-webui-aki-v4\py310\lib\site-packages (from insightface==0.7.3) (3.7.1) Requirement already satisfied: Pillow in h:\sd-webui-aki-v4\py310\lib\site-packages (from insightface==0.7.3) (9.5.0) Requirement already satisfied: scipy in h:\sd-webui-aki-v4\py310\lib\site-packages (from insightface==0.7.3) (1.10.1) Collecting scikit-learn (from insightface==0.7.3) Using cached https://mirrors.aliyun.com/pypi/packages/96/cf/a714a655266229b51eb2bda117f15275f12457887f165f3c1cc58ab502f1/scikit_learn-1.3.0-cp310-cp310-win_amd64.whl (9.2 MB) Requirement already satisfied: scikit-image in h:\sd-webui-aki-v4\py310\lib\site-packages (from insightface==0.7.3) (0.20.0) Collecting easydict (from insightface==0.7.3) Using cached easydict-1.10-py3-none-any.whl Requirement already satisfied: cython in h:\sd-webui-aki-v4\py310\lib\site-packages (from insightface==0.7.3) (0.29.35) Collecting albumentations (from insightface==0.7.3) Using cached https://mirrors.aliyun.com/pypi/packages/9b/f6/c486cedb4f75147232f32ec4c97026714cfef7c7e247a1f0427bc5489f66/albumentations-1.3.1-py3-none-any.whl (125 kB) Collecting prettytable (from insightface==0.7.3) Using cached https://mirrors.aliyun.com/pypi/packages/25/1e/4c284713b092ec384fad4399452f43f6446ad9aabc9c0b3c3c0920cc53b6/prettytable-3.8.0-py3-none-any.whl (27 kB) Requirement already satisfied: PyYAML in h:\sd-webui-aki-v4\py310\lib\site-packages (from albumentations->insightface==0.7.3) (6.0) Collecting qudida>=0.0.4 (from albumentations->insightface==0.7.3) Using cached https://mirrors.aliyun.com/pypi/packages/f0/a1/a5f4bebaa31d109003909809d88aeb0d4b201463a9ea29308d9e4f9e7655/qudida-0.0.4-py3-none-any.whl (3.5 kB) Collecting opencv-python-headless>=4.1.1 (from albumentations->insightface==0.7.3) Using cached https://mirrors.aliyun.com/pypi/packages/60/e7/a6dedca760db7a4686fd3b6053487ad4ad4d8f0591295dc8a9cf35269c42/opencv_python_headless-4.8.0.74-cp37-abi3-win_amd64.whl (38.0 MB) Requirement already satisfied: networkx>=2.8 in h:\sd-webui-aki-v4\py310\lib\site-packages (from scikit-image->insightface==0.7.3) (3.0) Requirement already satisfied: imageio>=2.4.1 in h:\sd-webui-aki-v4\py310\lib\site-packages (from scikit-image->insightface==0.7.3) (2.27.0) Requirement already satisfied: tifffile>=2019.7.26 in h:\sd-webui-aki-v4\py310\lib\site-packages (from scikit-image->insightface==0.7.3) (2023.4.12) Requirement already satisfied: PyWavelets>=1.1.1 in h:\sd-webui-aki-v4\py310\lib\site-packages (from scikit-image->insightface==0.7.3) (1.4.1) Requirement already satisfied: packaging>=20.0 in h:\sd-webui-aki-v4\py310\lib\site-packages (from scikit-image->insightface==0.7.3) (23.1) Requirement already satisfied: lazy_loader>=0.1 in h:\sd-webui-aki-v4\py310\lib\site-packages (from scikit-image->insightface==0.7.3) (0.2) Requirement already satisfied: contourpy>=1.0.1 in h:\sd-webui-aki-v4\py310\lib\site-packages (from matplotlib->insightface==0.7.3) (1.0.7) Requirement already satisfied: cycler>=0.10 in h:\sd-webui-aki-v4\py310\lib\site-packages (from matplotlib->insightface==0.7.3) (0.11.0) Requirement already satisfied: fonttools>=4.22.0 in h:\sd-webui-aki-v4\py310\lib\site-packages (from matplotlib->insightface==0.7.3) (4.39.3) Requirement already satisfied: kiwisolver>=1.0.1 in h:\sd-webui-aki-v4\py310\lib\site-packages (from matplotlib->insightface==0.7.3) (1.4.4) Requirement already satisfied: pyparsing>=2.3.1 in h:\sd-webui-aki-v4\py310\lib\site-packages (from matplotlib->insightface==0.7.3) (3.0.9) Requirement already satisfied: python-dateutil>=2.7 in h:\sd-webui-aki-v4\py310\lib\site-packages (from matplotlib->insightface==0.7.3) (2.8.2) Requirement already satisfied: protobuf>=3.20.2 in h:\sd-webui-aki-v4\py310\lib\site-packages (from onnx->insightface==0.7.3) (4.23.3) Requirement already satisfied: typing-extensions>=3.6.2.1 in h:\sd-webui-aki-v4\py310\lib\site-packages (from onnx->insightface==0.7.3) (4.4.0) Requirement already satisfied: wcwidth in h:\sd-webui-aki-v4\py310\lib\site-packages (from prettytable->insightface==0.7.3) (0.2.6) Requirement already satisfied: chardet<5,>=3.0.2 in h:\sd-webui-aki-v4\py310\lib\site-packages (from requests->insightface==0.7.3) (4.0.0) Requirement already satisfied: idna<3,>=2.5 in h:\sd-webui-aki-v4\py310\lib\site-packages (from requests->insightface==0.7.3) (2.10) Requirement already satisfied: urllib3<1.27,>=1.21.1 in h:\sd-webui-aki-v4\py310\lib\site-packages (from requests->insightface==0.7.3) (1.26.13) Requirement already satisfied: certifi>=2017.4.17 in h:\sd-webui-aki-v4\py310\lib\site-packages (from requests->insightface==0.7.3) (2022.12.7) Collecting joblib>=1.1.1 (from scikit-learn->insightface==0.7.3) Using cached https://mirrors.aliyun.com/pypi/packages/28/08/9dcdaa5aac4634e4c23af26d92121f7ce445c630efa0d3037881ae2407fb/joblib-1.3.1-py3-none-any.whl (301 kB) Collecting threadpoolctl>=2.0.0 (from scikit-learn->insightface==0.7.3) Using cached https://mirrors.aliyun.com/pypi/packages/61/cf/6e354304bcb9c6413c4e02a747b600061c21d38ba51e7e544ac7bc66aecc/threadpoolctl-3.1.0-py3-none-any.whl (14 kB) Requirement already satisfied: colorama in h:\sd-webui-aki-v4\py310\lib\site-packages (from tqdm->insightface==0.7.3) (0.4.6) Requirement already satisfied: six>=1.5 in h:\sd-webui-aki-v4\py310\lib\site-packages (from python-dateutil>=2.7->matplotlib->insightface==0.7.3) (1.16.0) Building wheels for collected packages: insightface Building wheel for insightface (pyproject.toml): started Building wheel for insightface (pyproject.toml): finished with status 'error' Failed to build insightface


*** stderr: error: subprocess-exited-with-error


× Building wheel for insightface (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [187 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' H:\sd-webui-aki-v4\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) H:\sd-webui-aki-v4\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) H:\sd-webui-aki-v4\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 "D:\Program Files\VisualStudio\VC\Tools\MSVC\14.36.32532\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -Iinsightface/thirdparty/face3d/mesh/cython -IH:\sd-webui-aki-v4\py310\lib\site-packages\numpy\core\include -IH:\sd-webui-aki-v4\py310\include -IH:\sd-webui-aki-v4\py310\Include "-ID:\Program Files\VisualStudio\VC\Tools\MSVC\14.36.32532\include" "-ID:\Program Files\VisualStudio\VC\Tools\MSVC\14.36.32532\ATLMFC\include" "-ID:\Program Files\VisualStudio\VC\Auxiliary\VS\include" "-ID:\Windows Kits\10\include\10.0.22000.0\ucrt" "-ID:\Windows Kits\10\include\10.0.22000.0\um" "-ID:\Windows Kits\10\include\10.0.22000.0\shared" "-ID:\Windows Kits\10\include\10.0.22000.0\winrt" "-ID:\Windows Kits\10\include\10.0.22000.0\cppwinrt" /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: \xa1\xb0=\xa1\xb1: \xb4ӡ\xb0int\xa1\xb1ת\xbb\xbb\xb5\xbd\xa1\xb0float\xa1\xb1\xa3\xac\xbf\xc9\xc4ܶ\xaaʧ\xca\xfd\xbe\xdd insightface/thirdparty/face3d/mesh/cython/mesh_core.cpp(147): warning C4244: \xa1\xb0=\xa1\xb1: \xb4ӡ\xb0int\xa1\xb1ת\xbb\xbb\xb5\xbd\xa1\xb0float\xa1\xb1\xa3\xac\xbf\xc9\xc4ܶ\xaaʧ\xca\xfd\xbe\xdd insightface/thirdparty/face3d/mesh/cython/mesh_core.cpp(210): warning C4244: \xa1\xb0=\xa1\xb1: \xb4ӡ\xb0int\xa1\xb1ת\xbb\xbb\xb5\xbd\xa1\xb0float\xa1\xb1\xa3\xac\xbf\xc9\xc4ܶ\xaaʧ\xca\xfd\xbe\xdd insightface/thirdparty/face3d/mesh/cython/mesh_core.cpp(210): warning C4244: \xa1\xb0=\xa1\xb1: \xb4ӡ\xb0int\xa1\xb1ת\xbb\xbb\xb5\xbd\xa1\xb0float\xa1\xb1\xa3\xac\xbf\xc9\xc4ܶ\xaaʧ\xca\xfd\xbe\xdd insightface/thirdparty/face3d/mesh/cython/mesh_core.cpp(294): warning C4244: \xa1\xb0=\xa1\xb1: \xb4ӡ\xb0int\xa1\xb1ת\xbb\xbb\xb5\xbd\xa1\xb0float\xa1\xb1\xa3\xac\xbf\xc9\xc4ܶ\xaaʧ\xca\xfd\xbe\xdd insightface/thirdparty/face3d/mesh/cython/mesh_core.cpp(294): warning C4244: \xa1\xb0=\xa1\xb1: \xb4ӡ\xb0int\xa1\xb1ת\xbb\xbb\xb5\xbd\xa1\xb0float\xa1\xb1\xa3\xac\xbf\xc9\xc4ܶ\xaaʧ\xca\xfd\xbe\xdd "D:\Program Files\VisualStudio\VC\Tools\MSVC\14.36.32532\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -Iinsightface/thirdparty/face3d/mesh/cython -IH:\sd-webui-aki-v4\py310\lib\site-packages\numpy\core\include -IH:\sd-webui-aki-v4\py310\include -IH:\sd-webui-aki-v4\py310\Include "-ID:\Program Files\VisualStudio\VC\Tools\MSVC\14.36.32532\include" "-ID:\Program Files\VisualStudio\VC\Tools\MSVC\14.36.32532\ATLMFC\include" "-ID:\Program Files\VisualStudio\VC\Auxiliary\VS\include" "-ID:\Windows Kits\10\include\10.0.22000.0\ucrt" "-ID:\Windows Kits\10\include\10.0.22000.0\um" "-ID:\Windows Kits\10\include\10.0.22000.0\shared" "-ID:\Windows Kits\10\include\10.0.22000.0\winrt" "-ID:\Windows Kits\10\include\10.0.22000.0\cppwinrt" /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 insightface/thirdparty/face3d/mesh/cython/mesh_core_cython.cpp(26): fatal error C1083: \xce޷\xa8\xb4򿪰\xfc\xc0\xa8\xceļ\xfe: \xa1\xb0Python.h\xa1\xb1: No such file or directory error: command 'D:\Program Files\VisualStudio\VC\Tools\MSVC\14.36.32532\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 *** ERROR: Could not build wheels for insightface, which is required to install pyproject.toml-based projects

qwq-zzl commented 1 year ago

How to solve it?

Anish-07 commented 11 months ago

use python 3.10

offmybach commented 10 months ago

use python 3.10

I'm using 3.10.6 and still can't install