Open noteMASTER11 opened 1 month ago
Did you install the Microsoft C++ Build Tools? I have the same issue as you, but after reading carefully the console for errors, I saw it requires that to build the insightface. After downloaded and install the build tool, run the command again and it should work.
Well... nobody loves to read what's written I suppose. Because 'vsBuildTools 17.10.5' in Software in my first message could tell more. For instance, that I'm not so stupid to create the repo Issue before checking everything and installing everything.
But, it's "Completed" without a chance to find a solution. OK.
This might help https://stackoverflow.com/questions/76739044/how-to-fix-this-issue-error-failed-building-wheel-for-insightface
But overall, the only reason I can think of is the similar answer of @phattran1023
Anyway, I'll reopen this for you as it seems you havent solved it yet.
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
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
"C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -Iinsightface/thirdparty/face3d/mesh/cython -IC:\Users\matt\AppData\Local\Temp\pip-build-env-k52z9_tn\overlay\Lib\site-packages\numpy\_core\include -IF:\MiniConda\envs\DeepLiveCam\include -IF:\MiniConda\envs\DeepLiveCam\Include "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\ATLMFC\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\VS\include" /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
C:\Users\@$@$%@%$\AppData\Local\Temp\pip-install-tvbz922f\insightface_d5bd2dd17e9a4997a87b405e0de6b27e\insightface\thirdparty\face3d\mesh\cython\mesh_core.h(4): fatal error C1083: Cannot open include file: 'stdio.h': No such file or directory
error: command 'C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.40.33807\\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 Failed to build insightface ERROR: Could not build wheels for insightface, which is required to install pyproject.toml-based projects
Well... nobody loves to read what's written I suppose. Because 'vsBuildTools 17.10.5' in Software in my first message could tell more. For instance, that I'm not so stupid to create the repo Issue before checking everything and installing everything.
But, it's "Completed" without a chance to find a solution. OK.
When you install vs_Buildtools Select: Workloads → Desktop development with C++
Individual Components must be checked:
Windows SDK C++ x64/x86 build tools
Hope it helps. Cheers.
Sorry, but after ~3 hours of tries I'm really tired and ask kindly for help.
Software: Windows 11 23H2 22631.3880; Python 3.10; PyCharm 2024.1.4 RC2; vsBuildTools 17.10.5; cuda 11.8.0_552 Toolkit. Hardware: i9-11900K; 32 GB RAM; RTX 3080.
I did reboot after installing everything and before trying to install requirements. But:
I dunno what to do because I did everything that was advised before in the previous issues. I tried to do the same steps directly from the Terminal also, but nothing works for me unfortunately. The same error I've got on my M1 MacBook but I don't want to use it 'cause of the low GPU performance.
Please suggest what can I do with. Thanks a lot.