问题
I'am working with Unix and I need to use HDF5 to store data. According to HDF5's guide, http://docs.h5py.org/en/latest/quick.html#quick, one should start by creating a new file.
import h5py
import numpy as np
f = h5py.File("mytestfile.hdf5", "w")
However, as soon as I run this code I get a weird error.
IOError: Unable to create file (Unable to open file: name = 'mytestfile.hdf5', errno = 13,
error message = 'permission denied', flags = 13, o_flags = 602)
I don't get the meaning of the error. Does someone know if I need specific permission to use this library ? Thanks in advance!
来源:https://stackoverflow.com/questions/39289217/permission-denied-while-starting-hdf5-library-on-python