相关疑难解决方法(0)

ImportError HDFStore需要PyTables没有名为tables的模块

import pandas as pd
dfs = pd.HDFStore('xxxxx.h5')
Run Code Online (Sandbox Code Playgroud)

抛出此错误:

"ImportError: HDFStore requires PyTables, "No module named tables" problem importing"

我试图安装PyTables,需要Cython.我安装了Cython 0.21,但它抛出了一个错误,说明Cython应该大于0.13

这是我得到的日志:

".. ERROR:: You need Cython 0.13 or greater to compile PyTables!

----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /private/tmp/pip_build_root/tables
Storing debug log for failure in /Users/nikhilsahai/Library/Logs/pip.log
Nikhils-MacBook-Pro:~ nikhilsahai$ sudo pip install cython
Requirement already satisfied (use --upgrade to upgrade): cython in /Library/Python/2.7/site-packages/Cython-0.21-py2.7-macosx-10.9-intel.egg
Cleaning up..."
Run Code Online (Sandbox Code Playgroud)

请指导我如何解决这个问题.

python hdf5 pandas

48
推荐指数
4
解决办法
4万
查看次数

标签 统计

hdf5 ×1

pandas ×1

python ×1