本文介绍了ImportError HDFStore需要PyTables没有名为表的模块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
import pandas as pd
dfs = pd.HDFStore('xxxxx.h5')
引发此错误:
"ImportError: HDFStore requires PyTables, "No module named tables" problem importing"
我尝试安装需要Cython的PyTables.我已经安装了Cython 0.21,但是它抛出一个错误,指出Cython应该大于0.13
I tried to install PyTables, which Requires Cython.I have Cython 0.21 installed, but it is throwing an error stating that Cython should be greater than 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..."
请指导我如何解决此问题.
Please guide me how to do solve this issue.
推荐答案
使用以下命令简单地更新pytables
:
Simply updating pytables
with:
pip install --upgrade tables
为我工作.
这篇关于ImportError HDFStore需要PyTables没有名为表的模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!