首页 Paddle框架 帖子详情
help,help! PaddleOCR安装的时候一直报错,有了解的小伙伴烦请帮忙
收藏
快速回复
Paddle框架 问答学习资料炼丹技巧 453 2
help,help! PaddleOCR安装的时候一直报错,有了解的小伙伴烦请帮忙
收藏
快速回复
Paddle框架 问答学习资料炼丹技巧 453 2

error: Command "/var/folders/nz/j6p8yfhx1mv_0grj5xl4650h0000gp/T/abs_c1y70ct529/croot/python-split_1665695297547/_build_env/bin/llvm-ar rcs build/temp.macosx-11.1-arm64-3.9/libnpymath.a build/temp.macosx-11.1-arm64-3.9/numpy/core/src/npymath/npy_math.o build/temp.macosx-11.1-arm64-3.9/build/src.macosx-11.1-arm64-3.9/numpy/core/src/npymath/ieee754.o build/temp.macosx-11.1-arm64-3.9/build/src.macosx-11.1-arm64-3.9/numpy/core/src/npymath/npy_math_complex.o build/temp.macosx-11.1-arm64-3.9/numpy/core/src/npymath/halffloat.o" failed with exit status 127

########### CLIB COMPILER OPTIMIZATION ###########
Platform :
Architecture: aarch64
Compiler : clang

CPU baseline :
Requested : 'min'
Enabled : NEON NEON_FP16 NEON_VFPV4 ASIMD
Flags : none
Extra checks: none

CPU dispatch :
Requested : 'max -xop -fma4'
Enabled : ASIMDHP ASIMDDP
Generated : none
CCompilerOpt._cache_write[796] : write cache to path -> /private/var/folders/b3/rwgrld754t17vktnzkrg86dw0000gn/T/pip-install-ilxhsy68/numpy_3cd0c7164f0c4bce8ed72e668f202073/build/temp.macosx-11.1-arm64-3.9/ccompiler_opt_cache_clib.py
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for numpy
Failed to build numpy
ERROR: Could not build wheels for numpy, which is required to install pyproject.toml-based projects
[end of output]

0
收藏
回复
全部评论(2)
时间顺序
beyondyourself
#2 回复于2022-11

python版本降低一下,改用3.7的试试

0
回复
扁担勾吃扁担杆
#5 回复于2022-11

-Ibuild/src.macosx-11.1-arm64-3.9/numpy/core/src/common -Ibuild/src.macosx-11.1-arm64-3.9/numpy/core/src/npymath -c'
extra options: '-march=native'

应该是编译c++时报错:
clang: error: the clang compiler does not support '-march=native'

解决办法:
将-march=native改为-mcpu=apple-m1 可是我不知道改那个文件里面的指令。

0
回复
需求/bug反馈?一键提issue告诉我们
发现bug?如果您知道修复办法,欢迎提pr直接参与建设飞桨~
在@后输入用户全名并按空格结束,可艾特全站任一用户