简体   繁体   English

pyarrow==0.17.1 安装以致命错误结束:找不到“arrow/python/config.h”文件(Apple M1 芯片)

[英]pyarrow==0.17.1 installation ends with fatal error: 'arrow/python/config.h' file not found (Apple M1 chip)

I'm trying to install the pyarrow==0.17.1 package on my MacBook pro machine (Apple M1 chip) and I'm getting the following error我正在尝试在我的 MacBook pro 机器(Apple M1 芯片)上安装pyarrow==0.17.1 package,但出现以下错误

      -- 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

I couldn't find a proven solution for this problem, the only reference I did review is the following - https://github.com/apache/arrow/issues/2281 , as mentioned, no proven solution there.我找不到针对此问题的经过验证的解决方案,我审查的唯一参考资料如下 - https://github.com/apache/arrow/issues/2281 ,如前所述,那里没有经过验证的解决方案。

Versions I'm using are: python 3.7.12 pip 22.0.4我使用的版本是:python 3.7.12 pip 22.0.4

On my machine, I have the following installed - apache-arrow, apache-arrow-glib, cmake .在我的机器上,我安装了以下 - apache-arrow, apache-arrow-glib, cmake I've also tried to install the package with the --no-use-pep517 flag as the following- pip install --no-use-pep517 pyarrow==0.17.1 - no success there.我还尝试--no-use-pep517标志安装 package,如下pip install --no-use-pep517 pyarrow==0.17.1 - 没有成功。

I took a peek inside arrow/python/ and config.h is obviously missing, I also look inside arrow/ which does contains a config.h , however, it's not the config.h that was required.我看了一眼arrow/python/里面, config.h显然不见了,我也看了arrow/里面确实包含一个config.h ,但是,它不是必需的config.h

Does anyone have an idea how to solve this issue?有谁知道如何解决这个问题?

pyarrow==0.17.1 predates M1 chips (May 2020 vs November 2020). pyarrow==0.17.1 早于 M1 芯片(2020 年 5 月与 2020 年 11 月)。

Any particular reason you wouldn't want to use pyarrow==7.0.0?您不想使用 pyarrow==7.0.0 的任何特定原因? Your brew installed arrow seems to be 7.0.0 too.您的 brew installed arrow 似乎也是 7.0.0。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在具有 M1 芯片(基于 ARM 的 Apple Silicon)的 Mac 上安装早期版本的 Python(3.8 之前)失败 - Installation of earlier versions of Python (prior to 3.8) fails on Mac with M1 Chip (ARM based Apple Silicon) 使用 python 请求库时 Apple Mac Book Pro M1 芯片分段错误 - Apple Mac Book Pro M1 Chip segmentation Error when using python requests library Python/pip 进程在 virtualenv 中被杀死(Apple M1 芯片) - Python/pip process are killed in virtualenv (Apple M1 chip) 在 Apple M1 芯片上安装 geopandas - Installing geopandas on Apple M1 chip 带有运行 macOS Big Sur 的 Apple M1 芯片的 iMac 上的 miniconda 安装问题 - miniconda installation issue on iMac with Apple M1 chip running macOS Big Sur Docker 在 Apple M1 上构建 python 应用程序错误“找不到 spacy==2.3.2 的匹配分布” - Docker build python app error "No matching distribution found for spacy==2.3.2" on Apple M1 无法在 Apple1 芯片中为 python Z2B9AFB89A6ACC1575B159BFCA38D10 安装 firebase-admin pip package - Unable to install firebase-admin pip package for python django in Apple M1 chip 获取非法指令:Apple M1 芯片上的非法硬件指令 python manage.py runserver - Getting Illegal instruction: illegal hardware instruction python manage.py runserver on Apple M1 chip Apple M1 - 未找到符号:运行 Python 应用程序时出现 _CFRelease - Apple M1 - Symbol not found: _CFRelease while running Python app 使用M1芯片在Mac上安装python@2 - Install python@2 on Mac with M1 chip
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM