h5py/api_compat.h:27:18: error: hdf5.h: No such file or directory

来源:互联网 发布:俄罗斯经济知乎 编辑:程序博客网 时间:2024/05/23 11:17

在安装h5py这个python包的时候遇到错误如下

h5py/api_compat.h:27:18: error: hdf5.h: No such file or directory



解决办法


到http://www.hdfgroup.org/HDF5/release/obtain5.html下载相应的版本



export HDF5_DIR=/path/hdf5-1.8.14-linux-centos5-x86_64-gcc412-shared/
然后再次python setup.py install 即可



0 0
原创粉丝点击