首页 > 解决方案 > 在 mac 10.15 上安装 pyarrow python 导致命令 clang 失败,退出状态代码为 1

问题描述

我必须安装pyarrow. 我正在使用安装,pip install pyarrow但它导致clang失败。日志是

 error: Command "clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic 
-DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk
 -I/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include -
I/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Tk.framework
/Versions/8.5/Headers -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -
Inumpy/core/include -Ibuild/src.macosx-10.15-x86_64-3.9/numpy/core/include/numpy -
Inumpy/core/src/common -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -
Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort 
-I/usr/local/include 
-I/usr/local/opt/openssl@1.1/include 
-I/usr/local/opt/sqlite/include 
-I/Users/riteek/work/gojek/asgard/spikes/litmus-reporting/scipy-spike/venv/include 
-I/usr/local/Cellar/python@3.9/3.9.0_1/Frameworks/Python.framework/Versions/3.9/include/python3.9 -Ibuild/src.macosx-10.15-x86_64-3.9/numpy/core/src/common 
-Ibuild/src.macosx-10.15-x86_64-3.9/numpy/core/src/npymath 
-Ibuild/src.macosx-10.15-x86_64-3.9/numpy/core/src/common 
-Ibuild/src.macosx-10.15-x86_64-3.9/numpy/core/src/npymath -c numpy/random/mtrand/mtrand.c -o build/temp.macosx-10.15-x86_64-3.9/numpy/random/mtrand/mtrand.o -MMD -MF build/temp.macosx-10.15-x86_64-3.9/numpy/random/mtrand/mtrand.o.d" failed with exit status 1

标签: pythonpipclangpyarrow

解决方案


推荐阅读