我对 Python 很陌生,正在尝试使用 HDFStore 在 pandas 中创建一个表,如下所示
store = HDFStore('store.h5')
我得到了例外:
Exception Traceback (most recent call last)
C:\Python27\<ipython-input-11-de3060b689e6> in <module>()
----> 1 store = HDFStore('store.h5')
C:\Python27\lib\site-packages\pandas-0.10.1-py2.7-win32.egg\pandas\io\pytables.pyc in __init__(self, path, mode, complevel, complib, fletcher32)
196 import tables as _
197 except ImportError: # pragma: no cover
--> 198 raise Exception('HDFStore requires PyTables')
199
200 self.path = path
Exception: HDFStore requires PyTables
我已经安装了 Pytables,它存在于站点包中。pandas(0.l0.1) 和 pytables(2.4.0) 都是 32 位 Windows 版本。32 位 Windows 的 Python 版本为 2.7.3
我正在使用 ipython notebook 运行它。
我忘了补充说我有 Windows 7 - 64 位操作系统,但 Python 及其所有相关的附加组件都是 32 位的。