繁体   English   中英

如何在 Amazon Linux 2 m6g 实例中安装 pyarrow

[英]How to install pyarrow in Amazon Linux 2 m6g instance

我正在尝试在具有 ARM 架构的 Amazon Linux 2 m6g 实例中安装 pyarrow。 我已经安装了几个依赖项,现在我在运行pip3.8 install pyarrow时遇到了这个错误:

-- Found the Arrow core static library: /usr/lib64/libarrow.a
    -- Could NOT find ArrowPython (missing: ArrowPython_DIR)
    -- Checking for module 'arrow-python'
    --   No package 'arrow-python' found
    CMake Error at /usr/local/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:165 (message):
      Could NOT find ArrowPython (missing: ARROW_PYTHON_INCLUDE_DIR
      ARROW_PYTHON_LIB_DIR) (found version "2.0.0")
    Call Stack (most recent call first):
      /usr/local/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:458 (_FPHSA_FAILURE_MESSAGE)
      cmake_modules/FindArrowPython.cmake:76 (find_package_handle_standard_args)
      CMakeLists.txt:215 (find_package)

它说我需要安装 ArrowPython 包。 当我运行sudo yum install arrow-python-libs来安装这个包时,我收到这个错误:

Error: Package: openblas-threads-0.3.3-2.el7.aarch64 (epel)
           Requires: libgfortran.so.3()(64bit)
Error: Package: openblas-threads-0.3.3-2.el7.aarch64 (epel)
           Requires: libgfortran.so.3(GFORTRAN_1.0)(64bit)
Error: Package: openblas-serial-0.3.3-2.el7.aarch64 (epel)
           Requires: libgfortran.so.3(GFORTRAN_1.0)(64bit)
Error: Package: python36-numpy-1.12.1-1.el7.aarch64 (epel)
           Requires: libpython3.6m.so.1.0()(64bit)
Error: Package: python36-numpy-1.12.1-1.el7.aarch64 (epel)
........
Error: Package: openblas-serial-0.3.3-2.el7.aarch64 (epel)
           Requires: libgfortran.so.3()(64bit)
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

我也尝试过其他 pyarrow 版本,但我遇到了同样的错误。

我该如何解决这个问题?

我无法通过 conda 安装。 或者当我尝试import pyarrow时, import pyarrow有导入错误。 但得到它的工作。 安装 conda 后,通过:

pip install pyarrow=2

暂无
暂无

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM