首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >使用pyarrow PlasmaStoreFull导入故障

使用pyarrow PlasmaStoreFull导入故障
EN

Stack Overflow用户
提问于 2019-10-06 11:08:44
回答 1查看 304关注 0票数 0

当我试图使用python3.7中的pandaralell运行一些工作时,我得到了一个‘无法从PlasmaStoreFull导入名称pyarrow.lib’的命令。我尝试了un/重新安装pyarrow,这本身似乎是导入ok。我没有在这里或在一般的谷歌搜索中找到对这种具体情况的参考。

代码语言:javascript
复制
(p37) jeremyr@bolt:$ pip3 uninstall pyarrow 
Uninstalling pyarrow-0.15.0:
  Would remove:
    /home/jeremyr/p37/bin/plasma_store
    /home/jeremyr/p37/lib/python3.7/site-packages/pyarrow-0.15.0.dist-info/*
    /home/jeremyr/p37/lib/python3.7/site-packages/pyarrow/*
Proceed (y/n)? y
  Successfully uninstalled pyarrow-0.15.0
(p37) jeremyr@bolt:$ pip3 install pyarrow
Collecting pyarrow
  Using cached https://files.pythonhosted.org/packages/02/61/62a74c9ca255dbe8cdff62ea1e9c8f0007f7ce809fccc02d7bf95dd19313/pyarrow-0.15.0-cp37-cp37m-manylinux2010_x86_64.whl
Requirement already satisfied: six>=1.0.0 in /home/jeremyr/p37/lib/python3.7/site-packages (from pyarrow) (1.12.0)
Requirement already satisfied: numpy>=1.14 in /home/jeremyr/p37/lib/python3.7/site-packages (from pyarrow) (1.17.2)
Installing collected packages: pyarrow
Successfully installed pyarrow-0.15.0
(p37) jeremyr@bolt:$ ipython 
Python 3.7.0 (default, Sep 23 2019, 10:05:28) 
Type 'copyright', 'credits' or 'license' for more information
IPython 7.8.0 -- An enhanced Interactive Python. Type '?' for help.

In [1]: import pyarrow                                                                                                                          

In [2]: pyarrow.__version__                                                                                                                     
Out[2]: '0.15.0'

In [3]: from pyarrow.lib import PlasmaStoreFull                                                                                                 
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-3-c640508e3f5e> in <module>
----> 1 from pyarrow.lib import PlasmaStoreFull

ImportError: cannot import name 'PlasmaStoreFull' from 'pyarrow.lib' (/home/jeremyr/p37/lib/python3.7/site-packages/pyarrow/lib.cpython-37m-x86_64-linux-gnu.so)
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2019-10-07 09:37:25

看起来PlasmaStoreFull在0.14中从pyarrow.lib迁移到了pyarrow.plasma --在正确的时间做了正确的事情

代码语言:javascript
复制
try:
    # Pyarrow version > 0.14
    from pyarrow.plasma import PlasmaStoreFull as _PlasmaStoreFull
except ImportError:
    # Pyarrow version <= 0.14
    from pyarrow.lib import PlasmaStoreFull as _PlasmaStoreFull

请参阅这个错误

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/58256649

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档