(unable to open file: name = ‘/media/00001.h5’, errno = 2, error message = ‘No such file or directory’, flags = 0, o_flags = 0)
保存h5文件,在windows环境下可以运行
`with h5py.File(save_name) as hf:`
在linux环境下出现问题(unable to open file: name = ‘/media/00001.h5’, errno = 2, error message = ‘No such file or directory’, flags = 0, o_flags = 0)
加上‘w’写入就可以了
with h5py.File(save_name,'w') as hf: