Installing h5py on an Ubuntu server
You need to install libhdf5-dev
to get the required header files. Just run
sudo apt-get install libhdf5-dev
and it should install it and its dependencies automatically.
Don't worry about the NumPy warning, it just means that the package developers are using an old version of the API, but everything will still work.
You can use python-h5py.
sudo apt-get install python-h5py
And then in your Python file try:
import h5py
In my case (Ubuntu 15.04) installing libhdf5-dev
was not enough.
I had to run:
HDF5_DIR=/usr/lib/x86_64-linux-gnu/hdf5/serial/ pip install h5py
to make it work.