Unidata/netcdf4-python

Problem installation netCDF4-python

kesariverma opened this issue · 2 comments

I am trying to install netCDF4-python in Ubuntu. I tried following commands in terminal for netCDF4

python setup.py install

HDF5_DIR environment variable not set, checking some standard locations ..,
checking /home/keshri ...
checking /usr/local ...
checking /sw ...
checking /opt ...
checking /opt/local ...
checking /usr ...
Traceback (most recent call last):
File "setup.py", line 47, in
raise ValueError('did not find HDF5 headers and libraries')
ValueError: did not find HDF5 headers and libraries
Anyone help me how to solve this error?

You need the HDF5 libraries installed. Since you're on Ubuntu, this is pretty easy. Take a look at the apt-get line in the script this library uses for continuous integration testing: https://github.com/Unidata/netcdf4-python/blob/master/.travis.yml

Yes, its working now. Thanks.