【问题标题】:Could not build wheels for pyarrow - Python 3.9无法为 pyarrow 构建轮子 - Python 3.9
【发布时间】:2021-11-27 05:02:46
【问题描述】:

最近,我们看到在 Python 3.9 项目中构建 pyarrow 依赖项失败。这开始于 2021 年 10 月 5 日晚上 8:57:01 左右

25hCollecting pyarrow 20:58:39 Downloading pyarrow-5.0.0.tar.gz (739 kB) 20:58:39 |
████████████████████████████████| 739 kB 90.7 MB/s 21:00:1425h Installing build dependencies ... 25l- \ | / - \ | / - \ | / - error 21:00:14 ERROR: Command errored out 
with exit status 1: 21:00:14 command: /usr/local/bin/python /tmp/pip-standalone-pip-
55h74pun/__env_pip__.zip/pip install --ignore-installed --no-user --prefix /tmp/pip-
build-env-i45zzwqe/overlay --no-warn-script-location --no-binary :none: --only-binary 
:none: -i https://pypi.org/simple -- 'cython >= 0.29' 'numpy==1.16.6; 
python_version<'"'"'3.9'"'"'' 'numpy==1.19.4; python_version>='"'"'3.9'"'"'' setuptools 
setuptools_scm wheel 21:00:14 cwd: None

...

ERROR: Failed building wheel for pyarrow which use PEP 517 and cannot be installed directly
21:12:46

在此之前,我们已成功构建,并且我们没有对代码进行任何更改。

我确实注意到,我们当前的作业在下载 pyarrow-5.0.0.tar.gz (739 kB) 时失败,而旧的成功作业正在下载 pyarrow-5.0.0-cp39-cp39-manylinux2014_x86_64.whl (23.7 MB)

我很好奇为什么会从使用 .whl 文件更改为 tar.gz 文件 requirements.txt:

boto3
halo
pandas
numpy
pyarrow
s3fs
click

我们如何安装:

pip install -r requirements.txt

我在 Pyarrow JIRA 上附上了完整的输出错误日志

感谢您的阅读!

【问题讨论】:

    标签: python-3.x pyarrow


    【解决方案1】:

    您没有使用 python 3.9。您正在使用 python 3.10。请注意您的安装行...

    command: /usr/local/bin/python /tmp/pip-standalone-pip-55h74pun/__env_pip__.zip/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-i45zzwqe/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'cython >= 0.29' 'numpy==1.16.6; python_version<'"'"'3.9'"'"'' 'numpy==1.19.4; python_version>='"'"'3.9'"'"'' setuptools setuptools_scm wheel
    

    我特别看到python_version&lt;3.9python_version&gt;=3.9。然后再往下一点:

      Ignoring numpy: markers 'python_version < "3.9"' don't match your environment
    

    最后,正在下载的车轮是cp310车轮。

    您可以在此处跟踪 Python 3.10 对 pyarrow 的支持:ARROW-14217

    【讨论】:

      猜你喜欢
      • 2020-07-30
      • 2020-06-11
      • 2022-07-18
      • 1970-01-01
      • 2022-06-10
      • 1970-01-01
      • 2020-08-16
      • 2022-11-11
      • 2020-11-09
      相关资源
      最近更新 更多