In your Makefile.config change:
sometimes you may come up with the following errors:
/usr/bin/ld: cannot find -lhdf5_hl
/usr/bin/ld: cannot find -lhdf5
here is the solution:
INCLUDE_DIRS := $(PYTHON_INCLUDE)/usr/local/include/usr/include/hdf5/serial
LIBRARY_DIRS := $(PYTHON_LIB) /usr/local/lib /usr/lib /usr/lib/x86_64-linux-gnu/hdf5/serial