在安装h5py的时候报错:
/tmp/pip-install-ve4RnJ/h5py/h5py/api_compat.h:27:18: fatal error: hdf5.h: No such file or directory
分析:
在安装这个库的时候,编译过程中,缺少hdf5.h 这个文件。
解决方案:
首先下载hdf5的共享库
下载地址:https://download.csdn.net/download/ambitiousruraldog/10431611 来自csdn的0523上传,也可去官网下载
然后:
export HDF5_DIR=/path/hdf5-1.8.14-linux-centos5-x86_64-gcc412-shared/
pip install h5py
就可以了