using python 3.11, still have error when installing on macOS going crazy lol

Author: pnwvm654h4-cellCreated Apr 15, 2026Updated Aug 7, 2026

In file included from insightface/thirdparty/face3d/mesh/cython/mesh_core.cpp:11: insightface/thirdparty/face3d/mesh/cython/mesh_core.h:5:10: fatal error: 'cmath' file not found 5 | #include | ^~~~~~~ 1 error generated. error: command '/usr/bin/clang++' failed with exit code 1 [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

I am constantly getting this error message when pip install-r requirements.txt

originally I thought because I was running python 3.13m but when using 3.11 I get same error message. any help?