Permission denied while starting HDF5 library on Python

喜你入骨 提交于 2021-02-07 12:47:42

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!