pip install insightface error(apple m2)
错误:
In file included from insightface/thirdparty/face3d/mesh/cython/mesh_core.cpp:11:
In file included from insightface/thirdparty/face3d/mesh/cython/mesh_core.h:6:
In file included from /opt/homebrew/opt/llvm@16/bin/../include/c++/v1/algorithm:1747:
In file included from /opt/homebrew/opt/llvm@16/bin/../include/c++/v1/__algorithm/inplace_merge.h:27:
In file included from /opt/homebrew/opt/llvm@16/bin/../include/c++/v1/__memory/temporary_buffer.h:17:
In file included from /opt/homebrew/opt/llvm@16/bin/../include/c++/v1/new:97:
/opt/homebrew/opt/llvm@16/bin/../include/c++/v1/exception:199:55: error: expected ';' at end of declaration list
_LIBCPP_INLINE_VISIBILITY exception_ptr(nullptr_t) _NOEXCEPT : __ptr_() {}
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
13 warnings and 20 errors generated.
error: command '/opt/homebrew/opt/llvm@16/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
解决方法:
xcode-select -p
export SDKROOT=$(xcrun --sdk macosx --show-sdk-path)
pip install protobuf==3.20.3 // 如果有报错说 protobuf 版本与冲突就执行这句
pip install insightface
作者: 热血文码士
出处:https://www.cnblogs.com/nenhall/p/18022855
版权:本文采用「署名-非商业性使用-相同方式共享 4.0 国际」知识共享许可协议进行许可。
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!
· 没有Manus邀请码?试试免邀请码的MGX或者开源的OpenManus吧
· 【自荐】一款简洁、开源的在线白板工具 Drawnix
· 园子的第一款AI主题卫衣上架——"HELLO! HOW CAN I ASSIST YOU TODAY
· 无需6万激活码!GitHub神秘组织3小时极速复刻Manus,手把手教你使用OpenManus搭建本