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
作者:Bravo Yeung
出处:http://www.cnblogs.com/nenhall/
如果您觉得阅读本文对您有帮助,请点击一下右下方的推荐按钮,您的推荐将是我写作的最大动力!
版权声明:本文为博主原创或转载文章,欢迎转载,但转载文章之后必须在文章页面明显位置注明出处,否则保留追究法律责任的权利。
出处:http://www.cnblogs.com/nenhall/
如果您觉得阅读本文对您有帮助,请点击一下右下方的推荐按钮,您的推荐将是我写作的最大动力!
版权声明:本文为博主原创或转载文章,欢迎转载,但转载文章之后必须在文章页面明显位置注明出处,否则保留追究法律责任的权利。