ImportError: cannot import name 'msgpack'
ImportError: cannot import name 'msgpack'
我正在关注使用 castra 和 dask 阅读 reddit 评论的 tutorial。
我已经安装了最新版本的 dask 和 pandas 使用 anaconda 和使用 pip 的 castra。我的 pandas 版本是 '0.22.0',我使用 pip install pandas-msgpack -U
安装了 msgpack 我正在使用 Python 3.6.
尝试导入 castra 时出现以下错误:
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-16-fcdf7be49118> in <module>()
32 from pandas import Timestamp, NaT, DataFrame
33 from toolz import dissoc
---> 34 from castra import Castra
35 from toolz import peek, partition_all
36 import time
/Users/edefilippis/anaconda/lib/python3.6/site-packages/castra/__init__.py in <module>()
----> 1 from .core import Castra
2
3 __version__ = '0.1.7'
/Users/edefilippis/anaconda/lib/python3.6/site-packages/castra/core.py in <module>()
22 import pandas as pd
23
---> 24 from pandas import msgpack
25
26
ImportError: cannot import name 'msgpack'
根据https://pandas-msgpack.readthedocs.io/en/latest/install.html尝试:
conda install pandas-msgpack --channel conda-forge
因为您可能缺少一些依赖项。另请参阅 pip 与 conda:
What is the difference between pip and conda?
我正在关注使用 castra 和 dask 阅读 reddit 评论的 tutorial。
我已经安装了最新版本的 dask 和 pandas 使用 anaconda 和使用 pip 的 castra。我的 pandas 版本是 '0.22.0',我使用 pip install pandas-msgpack -U
安装了 msgpack 我正在使用 Python 3.6.
尝试导入 castra 时出现以下错误:
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-16-fcdf7be49118> in <module>()
32 from pandas import Timestamp, NaT, DataFrame
33 from toolz import dissoc
---> 34 from castra import Castra
35 from toolz import peek, partition_all
36 import time
/Users/edefilippis/anaconda/lib/python3.6/site-packages/castra/__init__.py in <module>()
----> 1 from .core import Castra
2
3 __version__ = '0.1.7'
/Users/edefilippis/anaconda/lib/python3.6/site-packages/castra/core.py in <module>()
22 import pandas as pd
23
---> 24 from pandas import msgpack
25
26
ImportError: cannot import name 'msgpack'
根据https://pandas-msgpack.readthedocs.io/en/latest/install.html尝试:
conda install pandas-msgpack --channel conda-forge
因为您可能缺少一些依赖项。另请参阅 pip 与 conda:
What is the difference between pip and conda?