使用 Python 3.11 时,在 macOS 上安装时仍然出现错误,真是疯狂 lol
作者: pnwvm654h4-cell创建于 2026年4月15日更新于 2026年8月7日
在从 insightface/thirdparty/face3d/mesh/cython/mesh_core.cpp 中包含的文件中出现错误: insightface/thirdparty/face3d/mesh/cython/mesh_core.h:5:10: fatal error: 'cmath' 文件未找到 5 | #include <cmath> | ^~~~~~~ 产生 1 个错误。 error: 执行命令 '/usr/bin/clang++' 失败,退出代码为 1 [输出结束] 注意: 此错误来自一个子进程,可能不是 pip 的问题。 ERROR: 无法为 insightface 构建 wheels。 无法构建 insightface,这是安装基于 pyproject.toml 的项目所需的。
内容来源: hacksider/Deep-Live-Cam