Open ponymushama opened 6 months ago
Same problem 🥲
Any solution to this? Facing the same issue
Sometimes, setting the CFLAGS environment variable to include the NumPy headers can help:
export CFLAGS="-I$(python -c 'import numpy; print(numpy.get_include())')"
The above worked for me
Sometimes, setting the CFLAGS environment variable to include the NumPy headers can help:
export CFLAGS="-I$(python -c 'import numpy; print(numpy.get_include())')"
The above worked for me
It worked!!
My Device: M1 Macos 15 Sequoia Public Beta Env: Python 3.12
In my case, I use clang on the default place (where it appears on which)
For me it's
/usr/bin/clang
This is important because for some reason I can't use the one from Xcode or from the brew
So export it
export CC=/usr/bin/clang
and before exporting the CFLAGS listed here, make sure that numpy is already listed
And after that just run pip install insightface==0.7.3
again
Added Info:
pip install onnxruntime
I hope it helps!
@studentofcoding It worked for me! Although I had to run pip install insightface==0.7.3
several times for it to build for some reason!
Glad it's helped you @RazeBerry !, yes for some reason, sometimes it have to install insightface several times
Apple M2 max macOS Sonoma 14.3.1 (23D60)
The error message you're seeing suggests that the installation process for
insightface
failed during the building of a wheel for the package. The error occurs when trying to compile Cython code, which is a common step for Python packages that include C or C++ extensions for performance reasons.There are several potential reasons why this might happen, including but not limited to:
insightface
. You mentioned using Python 3.11; ensure thatinsightface
supports this Python version.ld: can't re-map file, errno=22
suggests there might be an issue with the linker or the compiler environment on your system. This could be related to the specific setup of your macOS system, especially if it involves cross-compilation between ARM64 (M1/M2 chips) and x86_64 architectures.setuptools
,wheel
,Cython
) used during the installation process.