首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何在Amazon Linux2 m6g实例中安装pyarrow

如何在Amazon Linux2 m6g实例中安装pyarrow
EN

Stack Overflow用户
提问于 2020-11-20 19:06:49
回答 1查看 1K关注 0票数 2

我正在尝试在拥有ARM架构的Amazon Linux2 m6g实例中安装pyarrow。我已经安装了几个依赖项,现在在运行pip3.8 install pyarrow时被这个错误卡住了

代码语言:javascript
复制
-- 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来安装这个包时,我得到了这个错误:

代码语言:javascript
复制
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版本,但我得到了相同的错误。

我该如何解决这个问题呢?

EN

回答 1

Stack Overflow用户

发布于 2021-09-23 12:42:46

我无法通过conda安装。或者当我尝试import pyarrow时,conda one出现了导入错误。但还是让它工作了。安装conda后,请通过以下方式:

pip install pyarrow=2

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

https://stackoverflow.com/questions/64928357

复制
相关文章

相似问题

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