Python:模块“pyarrow”没有属性“orc”

2024-05-14 15:15:55 发布

您现在位置:Python中文网/ 问答频道 /正文

我已经通过pip安装了pyarrow

pip install pyarrow

import pyarrow as pya

如果我调用属性orc,我会得到以下错误

pya.orc
AttributeError: module 'pyarrow' has no attribute 'orc'

Tags: installpipnoimport属性as错误attribute
2条回答

安装了Conda pyarrow后,我必须明确

import pyarrow.orc

为了避免你犯的错误

pyarrow控制盘(与pip一起安装时使用)不包括ORC绑定,请参见https://issues.apache.org/jira/browse/ARROW-7811

如果您想使用ORC,现在需要使用conda来安装pyarrow(或者从源代码手动安装)

请参阅安装指南:https://arrow.apache.org/docs/python/install.html

相关问题 更多 >

    热门问题