close

[Solved] Missing optional dependency ‘tables’. In pandas to_hdf

Hello Guys, How are you all? Hope You all Are Fine. Today I get the following error Missing optional dependency ‘tables’. In pandas to_hdf in python. So Here I am Explain to you all the possible solutions here.

Without wasting your time, Let’s start This Article to Solve This Error.

How Missing optional dependency ‘tables’. In pandas to_hdf Error Occurs?

Today I get the following error Missing optional dependency ‘tables’. In pandas to_hdf in python.

How To Solve Missing optional dependency ‘tables’. In pandas to_hdf Error ?

  1. How To Solve Missing optional dependency 'tables'. In pandas to_hdf Error ?

    To Solve Missing optional dependency 'tables'. In pandas to_hdf Error

  2. When i was installing tables using pip into local user directory using following command it's not working.
  3. Missing optional dependency 'tables'. In pandas to_hdf

    To Solve Missing optional dependency 'tables'. In pandas to_hdf Error

  4. When i was installing tables using pip into local user directory using following command it's not working

Solution 1

  • The issue was with tables.
  • When i was installing tables using pip into local user directory using following command it’s not working.
pip install --user tables
  • Running import tables will result in this error.ImportError: Could not load any of [‘hdf5.dll’, ‘hdf5dll.dll’], please ensure that it can be found in the system path
  • The solution that worked for me is to uninstall tables. And install it into python’s directory. (or where your python is installed). without --user option. You may require admin/root access for this depending upon location of your python.
  • For me my python path was C:\Program Files\Python37-64\python.exe and installing under c:\program files\python37-64\lib\site-packages\ worked for me.
  • Hope this helps. I don’t know why installing in user directory is not working for tables. If anyone can find the reason for that please post here.

Solution 2


For conda users:

conda install pytables

Summery

It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you? Thank You.

Also, Read