Wheel 无法安装 pyarrow

问题描述 投票:0回答:1

我正在尝试在我的树莓派上安装 pyarrow,但我不断遇到“错误:pyarrow 构建轮子失败”。完整的故事是:

 -- Found Python3: /usr/bin/python3 (found version "3.7.3") found components: Interpreter Development NumPy
  -- Found Python3Alt: /usr/bin/python3
  CMake Error at CMakeLists.txt:261 (find_package):
    By not providing "FindArrow.cmake" in CMAKE_MODULE_PATH this project has
    asked CMake to find a package configuration file provided by "Arrow", but
    CMake did not find one.
  
    Could not find a package configuration file provided by "Arrow" with any of
    the following names:
  
      ArrowConfig.cmake
      arrow-config.cmake
  
    Add the installation prefix of "Arrow" to CMAKE_PREFIX_PATH or set
    "Arrow_DIR" to a directory containing one of the above files.  If "Arrow"
    provides a separate development package or SDK, be sure it has been
    installed.
  
  
  -- Configuring incomplete, errors occurred!
  See also "/tmp/pip-install-e_ekov4_/pyarrow_4e0f276b716a45f492872a9110cbdd84/build/temp.linux-armv7l-cpython-37/CMakeFiles/CMakeOutput.log".
  error: command '/usr/bin/cmake' 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 pyarrow
Failed to build pyarrow
ERROR: Could not build wheels for pyarrow, which is required to install pyproject.toml-based projects

系统的一些背景:安装了Python 3.7.3以及cmake 3.16.3-3~bpo10+1。

我知道还有其他关于此问题的帖子,但没有一个解决该问题的想法对我有用,或者有时没有找到。这个问题去年 12 月在 wheel git hub 中讨论过,似乎已经解决了,但似乎我安装了错误的版本?我只是用了

pip3 install pyarrow
,有错吗?

python-3.7 pyarrow python-wheel
1个回答
0
投票

安装失败,因为未安装 Apache Arrow(pyarrow 只是一个包装器)。

按照 Python 开发 获取针对各种系统从源代码安装的说明。或者,如果您使用的是 macOS,则可以使用 Homebrew 来安装它:

brew install apache-arrow

© www.soinside.com 2019 - 2024. All rights reserved.