首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >pyarrow==0.17.1安装以致命错误结束:“箭头/python/config.h”文件未找到(苹果M1芯片)

pyarrow==0.17.1安装以致命错误结束:“箭头/python/config.h”文件未找到(苹果M1芯片)
EN

Stack Overflow用户
提问于 2022-03-20 11:45:09
回答 1查看 803关注 0票数 0

我试图在我的MacBook pro机器(苹果M1芯片)上安装MacBook软件包,我得到了以下错误

代码语言:javascript
复制
      -- Found PkgConfig: /opt/homebrew/bin/pkg-config (found version "0.29.2")
      -- Found Arrow: /opt/homebrew/Cellar/apache-arrow/7.0.0_3/include (found version "7.0.0")
      -- Arrow version: 7.0.0 (HOME: /opt/homebrew/Cellar/apache-arrow/7.0.0_3)
      -- Arrow SO and ABI version: 700
      -- Arrow full SO version: 700.0.0
      -- Found the Arrow core shared library: /opt/homebrew/Cellar/apache-arrow/7.0.0_3/lib/libarrow.dylib
      -- Found the Arrow core import library: /opt/homebrew/Cellar/apache-arrow/7.0.0_3/lib/libarrow.dylib
      -- Found the Arrow core static library: /opt/homebrew/Cellar/apache-arrow/7.0.0_3/lib/libarrow.a
      -- Found ArrowPython: /opt/homebrew/Cellar/apache-arrow/7.0.0_3/include (found version "7.0.0")
      -- Found the Arrow Python by HOME: /opt/homebrew/Cellar/apache-arrow/7.0.0_3
      -- Found the Arrow Python shared library: /opt/homebrew/Cellar/apache-arrow/7.0.0_3/lib/libarrow_python.dylib
      -- Found the Arrow Python import library: /opt/homebrew/Cellar/apache-arrow/7.0.0_3/lib/libarrow_python.dylib
      -- Found the Arrow Python static library: /opt/homebrew/Cellar/apache-arrow/7.0.0_3/lib/libarrow_python.a
      -- Configuring done
      -- Generating done
      -- Build files have been written to: /private/var/folders/6m/ychzdp6s7l390zfm77myvxzr0000gn/T/pip-install-lv5qrivl/pyarrow_12e0171ed6fa433da71d5392c3e10c3a/build/temp.macosx-12.0-arm64-3.7
      -- Finished cmake for pyarrow
      -- Running cmake --build for pyarrow
      cmake --build . --config release --
      [  6%] Compiling Cython CXX source for lib...
      [  6%] Built target lib_pyx
      [ 13%] Building CXX object CMakeFiles/lib.dir/lib.cpp.o
      /private/var/folders/6m/ychzdp6s7l390zfm77myvxzr0000gn/T/pip-install-lv5qrivl/pyarrow_12e0171ed6fa433da71d5392c3e10c3a/build/temp.macosx-12.0-arm64-3.7/lib.cpp:774:10: fatal error: 'arrow/python/config.h' file not found
      #include "arrow/python/config.h"
               ^~~~~~~~~~~~~~~~~~~~~~~
      1 error generated.
      make[2]: *** [CMakeFiles/lib.dir/lib.cpp.o] Error 1
      make[1]: *** [CMakeFiles/lib.dir/all] Error 2
      make: *** [all] Error 2
      error: command 'cmake' failed with exit status 2
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

我无法找到解决这个问题的有效解决方案,我所做的唯一参考就是下面的内容--正如前面提到的,没有经过验证的解决方案。

我使用的版本是:Python3.7.12 pip22.0.4

在我的机器上,我安装了以下程序- apache-arrow, apache-arrow-glib, cmake。我还试图安装带有--no-use-pep517标志的包,如下所示-- pip install --no-use-pep517 pyarrow==0.17.1 --在那里没有成功。

我在arrow/python/中查看了一下,config.h显然是缺少的,我还查看了包含config.harrow/内部,然而,它并不是必需的config.h

有没有人知道如何解决这个问题?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2022-03-20 23:04:55

pyarrow==0.17.1早于M1芯片(2020年5月与2020年11月)。

你不想使用pyarrow==7.0.0有什么特别的原因吗?您的brew安装箭头似乎也是7.0.0。

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/71546441

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档