【问题标题】:Error: "Undefined symbol" when trying to import pyarrow/feather错误:尝试导入 pyarrow/feather 时出现“未定义符号”
【发布时间】:2020-11-05 23:21:00
【问题描述】:

我通过安装feather

conda install feather-format -c conda-forge

在此过程中,conda 安装了pyarrow 和可能更多的软件包。

尝试执行import feather 时,我收到以下错误消息:

ImportError Traceback (most recent call last)
<ipython-input-1-1d29cbb85491> in <module>
----> 1 import feather

~/anaconda3/lib/python3.7/site-packages/feather/__init__.py in <module>
15 # flake8: noqa
16
---> 17 from pyarrow.feather import (read_feather as read_dataframe, # noqa
18 write_feather as write_dataframe,
19 FeatherError)

~/anaconda3/lib/python3.7/site-packages/pyarrow/__init__.py in <module>
52
53
---> 54 from pyarrow.lib import cpu_count, set_cpu_count
55 from pyarrow.lib import (null, bool_,
56 int8, int16, int32, int64,

ImportError: /home/MyUserName/anaconda3/lib/python3.7/site-packages/pyarrow/lib.cpython-37m-x86_64-linux-gnu.so: undefined symbol: _ZNK5arrow6Status8ToStringB5cxx11Ev

我使用的是 Ubuntu 20.04,这是我通过 Anaconda 安装的 Python 3.7.7。

【问题讨论】:

  • 您是如何安装pyarrowarrow-cpp 的?安装在哪个版本中?
  • @UweL.Korn 是的,bot pyarrowarrow-cpp 是 0.11.1 版。我认为boostboost-cpp 也已安装,版本为 1.68.0
  • 哦,那是pyarrow的相当古老的版本,请更新到最新版本。

标签: python python-3.x ubuntu pyarrow feather


【解决方案1】:

您可以 conda 卸载 pyarrow 并使用 pip 工具安装它,它适用于我的环境,但会引发相同的异常。

【讨论】:

    猜你喜欢
    • 2015-01-16
    • 1970-01-01
    • 2012-10-13
    • 1970-01-01
    • 1970-01-01
    • 2014-05-22
    • 2019-07-29
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多