to_hdf提示:ImportError: Missing optional dependency ‘tables‘. Use pip or conda to install tables.

使用to_hdf保存文件
提示:ImportError: Missing optional dependency ‘tables‘. Use pip or conda to install tables.

stack overflow回答:
I ran into the same thing. The error tells you (unhelpfully) that the missing package is called tables when in fact, it’s called pytables. Doing conda install pytables is all I needed to do to be able to read h5 files with pandas.
提示安装pytables

网上流行的方法:

conda install pytables
pip install tables

pytables和tables都尝试安装,仍未解决问题

pip install tables==3.5.2

降低版本后问题解决

你可能感兴趣的:(Pyhton踩坑录,pip,conda,python)