【发布时间】: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