您尚未登录。

#1 2019-07-22 17:40:25

jingmouren
会员
注册时间: 2014-09-13
帖子: 42

python的h5py安装/设置问题

PACMAN装的community/python-h5py 2.9.0-2 [installed]
, community/hdf5 1.10.5-1 [installed]
运行时可以读到keys,但到具体内容时报错,详情如下

h5file = h5py.File('.../data.hd5','r')

h5file
<HDF5 file "data.hd5" (mode r)>

h5file.keys()
<KeysViewHDF5 ['data_benchmark', 'data_d', 'data_inst', 'factor_df', 'index_weight', 'industry_group']>

h5file['data_benchmark']
<HDF5 group "/data_benchmark" (4 members)>

h5file['data_benchmark'].keys()
<KeysViewHDF5 ['axis0', 'axis1', 'block0_items', 'block0_values']>

h5file['data_benchmark']['axis0'][:]
*** OSError: Can't read data (can't open directory: /usr/local/hdf5/lib/plugin)

这是安装问题还是设置问题?该如何处理?

最近编辑记录 jingmouren (2019-07-22 17:46:28)

离线

页脚