开始使用pip安装,安装完成后仍然无法import 改用conda安装瞬间解决问题 $ conda install h5py 安装过程官网写的很详细了 http://docs.h5py.org/en/latest/build.html