hacksider / Deep-Live-Cam

real time face swap and one-click video deepfake with only a single image
GNU Affero General Public License v3.0
34.93k stars 4.93k forks source link

error: subprocess-exited-with-error #414

Open zhenlin12 opened 3 weeks ago

zhenlin12 commented 3 weeks ago

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 ╰─> [354 lines of output] WARNING: pandoc not enabled running bdist_wheel running build running build_py creating build creating build\lib.win32-cpython-310 creating build\lib.win32-cpython-310\insightface copying insightface__init.py -> build\lib.win32-cpython-310\insightface creating build\lib.win32-cpython-310\insightface\app copying insightface\app\common.py -> build\lib.win32-cpython-310\insightface\app copying insightface\app\face_analysis.py -> build\lib.win32-cpython-310\insightface\app copying insightface\app\mask_renderer.py -> build\lib.win32-cpython-310\insightface\app copying insightface\app__init.py -> build\lib.win32-cpython-310\insightface\app creating build\lib.win32-cpython-310\insightface\commands copying insightface\commands\insightface_cli.py -> build\lib.win32-cpython-310\insightface\commands copying insightface\commands\model_download.py -> build\lib.win32-cpython-310\insightface\commands copying insightface\commands\rec_add_mask_param.py -> build\lib.win32-cpython-310\insightface\commands copying insightface\commands__init.py -> build\lib.win32-cpython-310\insightface\commands creating build\lib.win32-cpython-310\insightface\data copying insightface\data\image.py -> build\lib.win32-cpython-310\insightface\data copying insightface\data\pickle_object.py -> build\lib.win32-cpython-310\insightface\data copying insightface\data\rec_builder.py -> build\lib.win32-cpython-310\insightface\data copying insightface\data__init__.py -> build\lib.win32-cpython-310\insightface\data creating build\lib.win32-cpython-310\insightface\model_zoo copying insightface\model_zoo\arcface_onnx.py -> build\lib.win32-cpython-310\insightface\model_zoo copying insightface\model_zoo\attribute.py -> build\lib.win32-cpython-310\insightface\model_zoo copying insightface\model_zoo\inswapper.py -> build\lib.win32-cpython-310\insightface\model_zoo copying insightface\model_zoo\landmark.py -> build\lib.win32-cpython-310\insightface\model_zoo copying insightface\model_zoo\model_store.py -> build\lib.win32-cpython-310\insightface\model_zoo copying insightface\model_zoo\model_zoo.py -> build\lib.win32-cpython-310\insightface\model_zoo copying insightface\model_zoo\retinaface.py -> build\lib.win32-cpython-310\insightface\model_zoo copying insightface\model_zoo\scrfd.py -> build\lib.win32-cpython-310\insightface\model_zoo copying insightface\model_zoo\init__.py -> build\lib.win32-cpython-310\insightface\model_zoo creating build\lib.win32-cpython-310\insightface\thirdparty copying insightface\thirdparty\init__.py -> build\lib.win32-cpython-310\insightface\thirdparty creating build\lib.win32-cpython-310\insightface\utils copying insightface\utils\constant.py -> build\lib.win32-cpython-310\insightface\utils copying insightface\utils\download.py -> build\lib.win32-cpython-310\insightface\utils copying insightface\utils\face_align.py -> build\lib.win32-cpython-310\insightface\utils copying insightface\utils\filesystem.py -> build\lib.win32-cpython-310\insightface\utils copying insightface\utils\storage.py -> build\lib.win32-cpython-310\insightface\utils copying insightface\utils\transform.py -> build\lib.win32-cpython-310\insightface\utils copying insightface\utils\init.py -> build\lib.win32-cpython-310\insightface\utils creating build\lib.win32-cpython-310\insightface\thirdparty\face3d copying insightface\thirdparty\face3d\init.py -> build\lib.win32-cpython-310\insightface\thirdparty\face3d creating build\lib.win32-cpython-310\insightface\thirdparty\face3d\mesh copying insightface\thirdparty\face3d\mesh\io.py -> build\lib.win32-cpython-310\insightface\thirdparty\face3d\mesh copying insightface\thirdparty\face3d\mesh\light.py -> build\lib.win32-cpython-310\insightface\thirdparty\face3d\mesh copying insightface\thirdparty\face3d\mesh\render.py -> build\lib.win32-cpython-310\insightface\thirdparty\face3d\mesh copying insightface\thirdparty\face3d\mesh\transform.py -> build\lib.win32-cpython-310\insightface\thirdparty\face3d\mesh copying insightface\thirdparty\face3d\mesh\vis.py -> build\lib.win32-cpython-310\insightface\thirdparty\face3d\mesh copying insightface\thirdparty\face3d\mesh\init.py -> build\lib.win32-cpython-310\insightface\thirdparty\face3d\mesh creating build\lib.win32-cpython-310\insightface\thirdparty\face3d\mesh_numpy copying insightface\thirdparty\face3d\mesh_numpy\io.py -> build\lib.win32-cpython-310\insightface\thirdparty\face3d\mesh_numpy copying insightface\thirdparty\face3d\mesh_numpy\light.py -> build\lib.win32-cpython-310\insightface\thirdparty\face3d\mesh_numpy copying insightface\thirdparty\face3d\mesh_numpy\render.py -> build\lib.win32-cpython-310\insightface\thirdparty\face3d\mesh_numpy copying insightface\thirdparty\face3d\mesh_numpy\transform.py -> build\lib.win32-cpython-310\insightface\thirdparty\face3d\mesh_numpy copying insightface\thirdparty\face3d\mesh_numpy\vis.py -> build\lib.win32-cpython-310\insightface\thirdparty\face3d\mesh_numpy copying insightface\thirdparty\face3d\mesh_numpy\init.py -> build\lib.win32-cpython-310\insightface\thirdparty\face3d\mesh_numpy creating build\lib.win32-cpython-310\insightface\thirdparty\face3d\morphable_model copying insightface\thirdparty\face3d\morphable_model\fit.py -> build\lib.win32-cpython-310\insightface\thirdparty\face3d\morphable_model copying insightface\thirdparty\face3d\morphable_model\load.py -> build\lib.win32-cpython-310\insightface\thirdparty\face3d\morphable_model copying insightface\thirdparty\face3d\morphable_model\morphabel_model.py -> build\lib.win32-cpython-310\insightface\thirdparty\face3d\morphable_model copying insightface\thirdparty\face3d\morphable_model\init__.py -> build\lib.win32-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:\UsersAppData\Local\Temp\pip-build-env-sb01jjud\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\AppData\Local\Temp\pip-build-env-sb01jjud\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:\UsersAppData\Local\Temp\pip-build-env-sb01jjud\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.win32-cpython-310\insightface\thirdparty\face3d\mesh\cython
  copying insightface\thirdparty\face3d\mesh\cython\mesh_core.cpp -> build\lib.win32-cpython-310\insightface\thirdparty\face3d\mesh\cython
  copying insightface\thirdparty\face3d\mesh\cython\mesh_core.h -> build\lib.win32-cpython-310\insightface\thirdparty\face3d\mesh\cython
  copying insightface\thirdparty\face3d\mesh\cython\mesh_core_cython.cpp -> build\lib.win32-cpython-310\insightface\thirdparty\face3d\mesh\cython
  creating build\lib.win32-cpython-310\insightface\data\images
  copying insightface\data\images\Tom_Hanks_54745.png -> build\lib.win32-cpython-310\insightface\data\images
  copying insightface\data\images\mask_black.jpg -> build\lib.win32-cpython-310\insightface\data\images
  copying insightface\data\images\mask_blue.jpg -> build\lib.win32-cpython-310\insightface\data\images
  copying insightface\data\images\mask_green.jpg -> build\lib.win32-cpython-310\insightface\data\images
  copying insightface\data\images\mask_white.jpg -> build\lib.win32-cpython-310\insightface\data\images
  copying insightface\data\images\t1.jpg -> build\lib.win32-cpython-310\insightface\data\images
  creating build\lib.win32-cpython-310\insightface\data\objects
  copying insightface\data\objects\meanshape_68.pkl -> build\lib.win32-cpython-310\insightface\data\objects
  copying insightface\thirdparty\face3d\mesh\cython\mesh_core_cython.c -> build\lib.win32-cpython-310\insightface\thirdparty\face3d\mesh\cython
  copying insightface\thirdparty\face3d\mesh\cython\mesh_core_cython.cpp -> build\lib.win32-cpython-310\insightface\thirdparty\face3d\mesh\cython
  copying insightface\thirdparty\face3d\mesh\cython\mesh_core_cython.pyx -> build\lib.win32-cpython-310\insightface\thirdparty\face3d\mesh\cython
  copying insightface\thirdparty\face3d\mesh\cython\setup.py -> build\lib.win32-cpython-310\insightface\thirdparty\face3d\mesh\cython
  running build_ext
  building 'insightface.thirdparty.face3d.mesh.cython.mesh_core_cython' extension
  creating build\temp.win32-cpython-310
  creating build\temp.win32-cpython-310\Release
  creating build\temp.win32-cpython-310\Release\insightface
  creating build\temp.win32-cpython-310\Release\insightface\thirdparty
  creating build\temp.win32-cpython-310\Release\insightface\thirdparty\face3d
  creating build\temp.win32-cpython-310\Release\insightface\thirdparty\face3d\mesh
  creating build\temp.win32-cpython-310\Release\insightface\thirdparty\face3d\mesh\cython
  "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.41.34120\bin\HostX86\x86\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -Iinsightface/thirdparty/face3d/mesh/cython -IC:\Users\黄振林\AppData\Local\Temp\pip-build-env-sb01jjud\overlay\Lib\site-packages\numpy\_core\include -IC:\ProgramData\miniconda3\envs\envdeep\include -IC:\ProgramData\miniconda3\envs\envdeep\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.41.34120\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\cppwinrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.41.34120\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\cppwinrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" /EHsc /Tpinsightface/thirdparty/face3d/mesh/cython/mesh_core.cpp /Fobuild\temp.win32-cpython-310\Release\insightface/thirdparty/face3d/mesh/cython/mesh_core.obj
  mesh_core.cpp
  insightface/thirdparty/face3d/mesh/cython/mesh_core.cpp(147): warning C4244: “=”: 从“int”转换到“float”,可能丢失数据
  insightface/thirdparty/face3d/mesh/cython/mesh_core.cpp(147): warning C4244: “=”: 从“int”转换到“float”,可能丢失数据
  insightface/thirdparty/face3d/mesh/cython/mesh_core.cpp(210): warning C4244: “=”: 从“int”转换到“float”,可能丢失数据
  insightface/thirdparty/face3d/mesh/cython/mesh_core.cpp(210): warning C4244: “=”: 从“int”转换到“float”,可能丢失数据
  insightface/thirdparty/face3d/mesh/cython/mesh_core.cpp(294): warning C4244: “=”: 从“int”转换到“float”,可能丢失数据
  insightface/thirdparty/face3d/mesh/cython/mesh_core.cpp(294): warning C4244: “=”: 从“int”转换到“float”,可能丢失数据
  "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.41.34120\bin\HostX86\x86\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -Iinsightface/thirdparty/face3d/mesh/cython -IC:\Users\黄振林\AppData\Local\Temp\pip-build-env-sb01jjud\overlay\Lib\site-packages\numpy\_core\include -IC:\ProgramData\miniconda3\envs\envdeep\include -IC:\ProgramData\miniconda3\envs\envdeep\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.41.34120\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\cppwinrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.41.34120\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\cppwinrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" /EHsc /Tpinsightface/thirdparty/face3d/mesh/cython/mesh_core_cython.cpp /Fobuild\temp.win32-cpython-310\Release\insightface/thirdparty/face3d/mesh/cython/mesh_core_cython.obj
  mesh_core_cython.cpp
  C:\Users\黄振林\AppData\Local\Temp\pip-build-env-sb01jjud\overlay\Lib\site-packages\numpy\_core\include\numpy\npy_1_7_deprecated_api.h(14) : Warning Msg: Using deprecated NumPy API, disable it with #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
  "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.41.34120\bin\HostX86\x86\link.exe" /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:C:\ProgramData\miniconda3\envs\envdeep\libs /LIBPATH:C:\ProgramData\miniconda3\envs\envdeep /LIBPATH:C:\ProgramData\miniconda3\envs\envdeep\PCbuild\win32 "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.41.34120\lib\x86" "/LIBPATH:C:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\lib\um\x86" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.22621.0\ucrt\x86" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\\lib\10.0.22621.0\\um\x86" "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.41.34120\lib\x86" "/LIBPATH:C:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\lib\um\x86" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.22621.0\ucrt\x86" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\\lib\10.0.22621.0\\um\x86" /EXPORT:PyInit_mesh_core_cython build\temp.win32-cpython-310\Release\insightface/thirdparty/face3d/mesh/cython/mesh_core.obj build\temp.win32-cpython-310\Release\insightface/thirdparty/face3d/mesh/cython/mesh_core_cython.obj /OUT:build\lib.win32-cpython-310\insightface\thirdparty\face3d\mesh\cython\mesh_core_cython.cp310-win_amd64.pyd /IMPLIB:build\temp.win32-cpython-310\Release\insightface/thirdparty/face3d/mesh/cython\mesh_core_cython.cp310-win_amd64.lib
    正在创建库 build\temp.win32-cpython-310\Release\insightface/thirdparty/face3d/mesh/cython\mesh_core_cython.cp310-win_amd64.lib 和对象 build\temp.win32-cpython-310\Release\insightface/thirdparty/face3d/mesh/cython\mesh_core_cython.cp310-win_amd64.exp
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp__PyBaseObject_Type
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp___PyDict_NewPresized
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp__PyObject_SetAttr
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp__PyUnicode_InternFromString
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp__PyOS_snprintf
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp__PyThreadState_Get
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp__PyExc_Exception
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp__PyErr_SetObject
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp__PyCode_NewEmpty
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp__PyErr_GivenExceptionMatches
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp__PyLong_AsUnsignedLong
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp__PyErr_WarnEx
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp__PyExc_RuntimeWarning
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp__PyFrame_New
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp__PyExc_DeprecationWarning
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp__Py_LeaveRecursiveCall
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp__PyImport_ImportModule
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp___PyLong_AsByteArray
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp__PyImport_ImportModuleLevelObject
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp__PyErr_NormalizeException
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp__PyErr_Occurred
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp__PyObject_GenericGetAttr
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp__PyTraceBack_Here
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp___PyThreadState_UncheckedGet
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp__PyExc_RuntimeError
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp__PyMethod_New
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp__PyExc_IOError
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp__PyObject_SetAttrString
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp__PyObject_GC_UnTrack
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp__PyObject_Hash
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp__PyExc_MemoryError
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp__PyInterpreterState_GetID
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp__Py_GetVersion
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp__PyObject_GetAttr
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp__PyLong_AsUnsignedLongLong
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp__PyBytes_AsStringAndSize
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp___Py_NoneStruct
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp__PyLong_AsLongLong
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp__PyTuple_New
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp__PyDict_SetItemString
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp__PyDict_Size
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp__PyExc_AttributeError
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp__PyTuple_GetSlice
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp__PyErr_SetString
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp__PyErr_WarnFormat
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp__PyExc_ValueError
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp__PyDict_Next
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp__PyErr_Format
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp__PyExc_ArithmeticError
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp__PyObject_RichCompare
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp___Py_FalseStruct
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp__PyImport_GetModule
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp__PyModule_NewObject
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp__PyLong_Type
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp__PyType_IsSubtype
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp__PyUnicode_Join
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp__PyExc_OverflowError
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp__PyCode_NewWithPosOnlyArgs
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp___Py_Dealloc
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp__PyTuple_GetItem
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp__PyImport_GetModuleDict
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp__PyModule_GetDict
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp__PySequence_GetSlice
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp__PyObject_Free
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp__PyErr_ExceptionMatches
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp__PyCapsule_GetPointer
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp__PyObject_GC_Del
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp__PyLong_AsLong
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp__PyObject_ClearWeakRefs
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp__PyObject_Not
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp__PyUnicode_AsUTF8
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp__PyUnicode_FromFormat
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp__PyObject_GetBuffer
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp__PyList_New
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp__PyImport_AddModule
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp__PyType_Ready
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp__PyObject_GetAttrString
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp__PyErr_Clear
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp__PyUnicode_Decode
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp__PyException_SetTraceback
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp___PyObject_GenericGetAttrWithDict
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp__PyDict_SetItem
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp__PyDict_New
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp__PyUnicode_Type
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp___PyDict_GetItem_KnownHash
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp__PyMem_Free
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp__PyErr_NoMemory
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp__PyDict_GetItemString
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp__PyObject_CallObject
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp__PyModuleDef_Init
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp__PyObject_GC_Track
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp__PyBytes_FromStringAndSize
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp__PyUnicode_Compare
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp__PyObject_IsSubclass
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp__PyExc_TypeError
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp__PyMem_Realloc
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp__PyCapsule_Type
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp__PyObject_IsTrue
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp__PyExc_NameError
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp__PyTuple_Pack
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp___PyByteArray_empty_string
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp___PyUnicode_Ready
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp__PyMem_Malloc
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp__PyExc_IndexError
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp__Py_EnterRecursiveCall
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp__PyExc_ImportError
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp___Py_TrueStruct
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp__PyExc_SystemError
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp___PyObject_GC_New
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp__PyException_SetCause
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp__PyTraceBack_Type
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp__PyUnicode_FromString
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp__PyBuffer_Release
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp__PyObject_Call
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp__PyByteArray_Type
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp__PyUnicode_FromStringAndSize
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp__PyExc_ModuleNotFoundError
  mesh_core_cython.obj : error LNK2001: 无法解析的外部符号 __imp___PyObject_GetDictPtr
  build\lib.win32-cpython-310\insightface\thirdparty\face3d\mesh\cython\mesh_core_cython.cp310-win_amd64.pyd : fatal error LNK1120: 118 个无法解析的外部命令
  error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.41.34120\\bin\\HostX86\\x86\\link.exe' failed with exit code 1120
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for insightface Failed to build insightface ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (insightface)

Frag782 commented 3 weeks ago

It may be an issue due to missing Visual Studio runtimes. Refer to section 1 of the Readme file (setup). Last bullet is a link to VS runtimes download page. If you have Visual Studio installed, make sure to check "Desktop development for C++" in the installer, then start the installation.