pip install insightface error(apple m2)

错误:

Copy
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

解决方法:

Copy
xcode-select -p export SDKROOT=$(xcrun --sdk macosx --show-sdk-path) pip install protobuf==3.20.3 // 如果有报错说 protobuf 版本与冲突就执行这句 pip install insightface
posted @   热血文码士  阅读(340)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!
· 没有Manus邀请码?试试免邀请码的MGX或者开源的OpenManus吧
· 【自荐】一款简洁、开源的在线白板工具 Drawnix
· 园子的第一款AI主题卫衣上架——"HELLO! HOW CAN I ASSIST YOU TODAY
· 无需6万激活码!GitHub神秘组织3小时极速复刻Manus,手把手教你使用OpenManus搭建本

打赏

>>

欢迎打赏支持我 ^_^

扫描二维码打赏

了解更多

点击右上角即可分享
微信分享提示