Python 2 is deprecated and no longer maintained. It is recommended to transition to Python 3 for ongoing support and security updates.
I just tried to install python-hdf4 via pip and it failed. I'm using pip in the anaconda distribution. The problem seems to be with compiling hdfext_wrap.c: pyhdf/hdfext_wrap.c:3543:17: error: hdf.h: ...