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

ema*_*max 1 python pyarrow

我已经安装了pyarrowpip

pip install pyarrow

import pyarrow as pya
Run Code Online (Sandbox Code Playgroud)

如果我调用该属性,orc则会出现以下错误

pya.orc
AttributeError: module 'pyarrow' has no attribute 'orc'
Run Code Online (Sandbox Code Playgroud)

har*_*ppu 5

使用 Conda 安装的 pyarrow,我必须明确地

import pyarrow.orc
Run Code Online (Sandbox Code Playgroud)

以避免您遇到的错误。