【问题标题】:Installing pyarrow: can't copy 'build/lib.macosx-11-arm64-3.9/pyarrow/include/arrow': doesn't exist or not a regular file安装 pyarrow:无法复制 'build/lib.macosx-11-arm64-3.9/pyarrow/include/arrow':不存在或不是常规文件
【发布时间】:2021-09-23 21:13:41
【问题描述】:

我正在尝试使用以下命令安装 pyarrow*:

OPENSSL_ROOT_DIR=/opt/homebrew/opt/openssl@1.1/ pip install "pyarrow==4.0.1" --no-use-pep517

但是,看起来编译失败,因为我在最后收到以下消息:

    Moving built C-extension release/_compute.cpython-39-darwin.so to build path /private/var/folders/kw/dnbqlh8n5zb9b1529n95j91m0000gr/T/pip-install-9qbgfsx2/pyarrow_3accc74c8d1a4153894730bae7812439/build/lib.macosx-11-arm64-3.9/pyarrow/_compute.cpython-39-darwin.so
    Did not find release/_cuda.cpython-39-darwin.so
    Cython module _cuda failure permitted
    Did not find release/_flight.cpython-39-darwin.so
    Cython module _flight failure permitted
    Did not find release/_dataset.cpython-39-darwin.so
    Cython module _dataset failure permitted
    Did not find release/_parquet.cpython-39-darwin.so
    Cython module _parquet failure permitted
    Did not find release/_orc.cpython-39-darwin.so
    Cython module _orc failure permitted
    Did not find release/_plasma.cpython-39-darwin.so
    Cython module _plasma failure permitted
    Did not find release/_s3fs.cpython-39-darwin.so
    Cython module _s3fs failure permitted
    Did not find release/_hdfs.cpython-39-darwin.so
    Cython module _hdfs failure permitted
    Did not find release/gandiva.cpython-39-darwin.so
    Cython module gandiva failure permitted
    running install_lib
    copying build/lib.macosx-11-arm64-3.9/pyarrow/_generated_version.py -> [*my python path*]/lib/python3.9/site-packages/pyarrow
    error: can't copy 'build/lib.macosx-11-arm64-3.9/pyarrow/include/arrow': doesn't exist or not a regular file

这里有什么问题?为什么文件不存在,如何修复?


*命令说明:

  • OPENSSL_ROOT_DIR 是必需的,否则 CMake 会抱怨找不到 OpenSSL
  • 4.0.1 是最新版本,旧版本也出现同样的错误
  • no-use-pep517 因为显然构建还涉及为 numpy 构建一个轮子,这不适用于 M1 macs 上的 pep517

【问题讨论】:

    标签: cmake pip apple-m1 pyarrow python-3.9


    【解决方案1】:

    更新

    您可以使用现在支持 M1 的夜间安装 pyarrow

    pip install --extra-index-url https://pypi.fury.io/arrow-nightlies/ --prefer-binary --pre pyarrow

    预更新

    坏消息是我认为这是 pyarrow 的错,而不是你自己。

    好消息是我认为它即将修复!

    如果你下载this comment中提到的轮子然后做pip install ~/Downloads/pyarrow-5.0.0.dev471-cp39-cp39-macosx_11_0_arm64.whl我想它会安装。

    希望这将很快进入适当的版本。

    【讨论】:

    • 感谢您挖掘该链接!你知道他们是如何制造这些轮子的吗?
    • 我认为有一个轮子模块,它从源代码构建它们。仅供参考,拉取请求已合并,因此您现在可以使用每晚安装。已相应更新我的答案
    • 我正在寻找版本 1.4.1 或无论如何
    猜你喜欢
    • 2021-03-05
    • 2021-03-14
    • 2022-01-16
    • 1970-01-01
    • 1970-01-01
    • 2021-11-27
    • 2021-09-04
    • 2019-08-28
    • 2020-07-07
    相关资源
    最近更新 更多