The .npy format .npy not intended to be read from outside NumPy. There are many formats available that provide both excellent C libraries and Python such as HDF5 and NetCDF, so I see no reason to access my own NumPy files with C.
If you want to do this anyway, .npy format .npy . It does not use pickle internally unless you have stored Python objects in your array (but in this case, I wonder what you are going to do with the ones in your C program).
source share