module'h5py'没有属性'string_dtype'

问题描述 投票:0回答:1

我正在尝试在python 3.7中保存一个字符串。在h5py文档页面中,所有内容都与此类数据类型有关:

dt = h5py.string_dtype(encoding='ascii')

但是,当我尝试它时,出现以下错误。

module 'h5py' has no attribute 'string_dtype'

将字符串保存为hdf5格式的最简单方法是什么。

谢谢

python string hdf5 h5py
1个回答
0
投票
尝试conda update -c conda-forge h5py
© www.soinside.com 2019 - 2024. All rights reserved.