Python 3.x pyarrow Plasmastorl的进口问题

Python 3.x pyarrow Plasmastorl的进口问题,python-3.x,python-import,pyarrow,Python 3.x,Python Import,Pyarrow,在尝试使用python3.7中的Pandaralel运行某些工作时,我得到一个“无法从pyarrow.lib导入名称PlasmaStoreFull”。我尝试了卸载/重新安装pyarrow,它本身似乎导入正常。我还没有在这里或谷歌的一般搜索中找到这种具体情况的参考资料 (p37) jeremyr@bolt:$ pip3 uninstall pyarrow Uninstalling pyarrow-0.15.0: Would remove: /home/jeremyr/p37/bin/

在尝试使用python3.7中的Pandaralel运行某些工作时,我得到一个“无法从pyarrow.lib导入名称PlasmaStoreFull”。我尝试了卸载/重新安装pyarrow,它本身似乎导入正常。我还没有在这里或谷歌的一般搜索中找到这种具体情况的参考资料

(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)
(第37页)jeremyr@bolt:$pip3卸载pyarrow
正在卸载pyarrow-0.15.0:
将删除:
/主页/jeremyr/p37/bin/plasma_商店
/home/jeremyr/p37/lib/python3.7/site-packages/pyarrow-0.15.0.dist-info/*
/home/jeremyr/p37/lib/python3.7/site-packages/pyarrow/*
是否继续?Y
已成功卸载pyarrow-0.15.0
(第37页)jeremyr@bolt:$pip3安装pyarrow
收集野猪
使用缓存https://files.pythonhosted.org/packages/02/61/62a74c9ca255dbe8cdff62ea1e9c8f0007f7ce809fccc02d7bf95dd19313/pyarrow-0.15.0-cp37-cp37m-manylinux2010_x86_64.whl
已满足要求:六个>=1.0.0 in/home/jeremyr/p37/lib/python3.7/site-packages(来自pyarrow)(1.12.0)
已满足要求:numpy>=1.14 in/home/jeremyr/p37/lib/python3.7/site-packages(来自pyarrow)(1.17.2)
安装收集的软件包:pyarrow
已成功安装pyarrow-0.15.0
(第37页)jeremyr@bolt:$ipython
Python 3.7.0(默认值,2019年9月23日,10:05:28)
有关详细信息,请键入“版权”、“信用”或“许可证”
IPython 7.8.0——一种增强的交互式Python。键入“?”以获取帮助。
在[1]中:导入pyarrow
在[2]中:pyarrow.\uuuu版本\uuuu
Out[2]:“0.15.0”
在[3]中:从pyarrow.lib导入PlasmastorRefll
---------------------------------------------------------------------------
ImportError回溯(最近一次呼叫最后一次)
在里面
---->1从pyarrow.lib导入PlasmastorRefll
ImportError:无法从“pyarrow.lib”(/home/jeremyr/p37/lib/python3.7/site packages/pyarrow/lib.cpython-37m-x86_64-linux-gnu.so)导入名称“PlasmastorRefell”)

看起来PlasmaStoreFull从v0.14中的pyarrow.lib移动到了v0.15中的pyarrow.plasma-以下内容在正确的时间做了正确的事情

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
试试看:
#Pyarrow版本>0.14
从pyarrow.plasma导入PlasmaStoreFull作为_PlasmaStoreFull
除恐怖外:
#Pyarrow版本