在Windows 7 64位中以Python导入表时出错

在Windows 7 64位中以Python导入表时出错,python,pandas,pytables,Python,Pandas,Pytables,我试图在Pandas中使用HDFStore命令,尽管我安装了PyTables,但在运行该命令时: import pandas as pan filename=('testfile.h5') store=pan.HDFStore(filename) import tables 我得到以下错误: Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\Users

我试图在Pandas中使用HDFStore命令,尽管我安装了PyTables,但在运行该命令时:

import pandas as pan
filename=('testfile.h5')
store=pan.HDFStore(filename)
import tables
我得到以下错误:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Users\dashamstyr\Anaconda\lib\site-packages\pandas\io\pytables.py", line 390, in __init__
    raise ImportError('HDFStore requires PyTables, "{ex}" problem importing'.format(ex=str(ex)))
ImportError: HDFStore requires PyTables, "cannot import name blosc_get_complib_info_" problem importing
我得到这个错误:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Users\dashamstyr\Anaconda\lib\site-packages\tables\__init__.py", line 84, in <module>
    from tables.utilsextension import (
ImportError: cannot import name blosc_get_complib_info_
回溯(最近一次呼叫最后一次):
文件“”,第1行,在
文件“C:\Users\dashamstyr\Anaconda\lib\site packages\tables\\uuuu init\uuuu.py”,第84行,在
从tables.utilExtension导入(
导入错误:无法导入名称blosc\u get\u complib\u info_
我正在使用适用于windows 7 64位的Anaconda Python发行版。我有以下版本的相关软件包(我认为它们都是最新的):

  • Python 2.7.9
  • 表3.2.0
  • HDF5 1.8.15.1
  • Cython 0.22.1
  • numexpr 2.4.3
  • 熊猫0.16.2

您正在使用conda吗?看起来您可能需要更新某些pytables依赖项。conda应该自动执行此操作,但如果您没有使用conda,则可能需要手动执行此操作。仅供参考,blosc与pytables使用的压缩有关。我正在使用conda。并且拥有HDF5、Cython、numpy和numexpr的最新版本(据我所知)。PyTables的Prequisites包含对“c-blosc”的引用,但他们说它与PyTables捆绑在一起。我试图通过conda手动安装它,但它找不到包。抱歉,我不知道会发生什么。重复安装python有时会有问题,因此您可能会仔细检查(并根据需要卸载)。您也可以尝试在此处询问: