无法为pyarrow构建wheels - Python 3.9

3

最近,在我们的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 上附上完整的错误日志。

谢谢阅读!

1个回答

4

您没有使用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<3.9python_version>=3.9。稍微往下滑一点:
  Ignoring numpy: markers 'python_version < "3.9"' don't match your environment

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

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


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接