pythonpippackageh5py

Cannot install h5py


I'm trying to install h5py, but when I do pip install h5py or use python setup.py install from the source code, fatal error:

hdf5.h: No such file or directory.

Other posts mention to do pip install libhdf5-dev or pip install libhdf5-serial-dev to resolve this, but it says "no matching distribution found."

How can I install h5py? I am ssh'd into an Odyssey computer using the CentOS 6.5 version of the Linux. Also, I do not have sudo privileges. Thanks!


Solution

  • This link helped: https://github.com/Homebrew/legacy-homebrew/issues/23144

    I installed LinuxHomeBrew and did:

    brew tap homebrew/science
    brew install hdf5
    pip install h5py 
    

    I was able to install h5py!