Exception 'HDFStore requires PyTables ' when using HDF5 file in iPython

自作多情 提交于 2019-12-06 03:57:14

I also had the same error when using HDFStore. And I tried all the steps specified above and spent many hours to find a solution, but non of them were successful.

Then I downloaded and installed MiniConda. And then I used the below command to install pytables.

conda install -c conda-forge pytables

Please refer the below screenshot.

agconti

I suspect your problem is that you have not added Python Scripts to your system PATH. Assuming that check out this tutorial on how to do it.

You are looking to add the C:\Python27, C:\Python27\Lib. and C:\Python27\Scripts. Make sure you separate each one with a ;. Also make sure you add it to your system PATH variable and not just your user PATH variable.

after all of that check import pytables. It should no longer throw and error, because python will be 'know' that pytables is installed and be able to locate it.

Vic Liu

I had same problem. I am using win7 + anaconda python2.7 + IPython.

But I fixed it with following steps:

From http://www.lfd.uci.edu/~gohlke/pythonlibs/#pytables
download file tables‑3.2.1‑cp27‑none‑win_amd64.whl

and install it with cmd

pip install tables‑3.2.1‑cp27‑none‑win_amd64.whl

after installed problem solved.

ref: http://www.pytables.org/usersguide/installation.html#binary-installation-windows

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!