ValueError('did not find HDF5 headers in %s' % HDF5_incdir)
flo-Ty opened this issue · 3 comments
Receiving this error after python setup.py install
:
reading from setup.cfg... Traceback (most recent call last): File "setup.py", line 222, in <module> raise ValueError('did not find HDF5 headers in %s' % HDF5_incdir)
Thanks for the query.
The content in the README.md is very old and I've omitted some steps.
You can now install it with yum and pip.
Here are the steps.
yum clean all
yum update yum
yum update curl
yum update openssl
yum update nss
yum install epel-release
wget https://dl.iuscommunity.org/pub/ius/stable/CentOS/6/x86_64/ius-release-1.0-15.ius.centos6.noarch.rpm
rpm -Uvh ius-release-1.0-15.ius.centos6.noarch.rpm
yum install hdf5-devel netcdf-devel python27-setuptools python27-pip python27-devel gcc libcurl-devel mod_python
pip2.7 install numpy==1.14.6
pip2.7 install cython
pip2.7 install netCDF4
Hi @makinux, thanks for your reply. Ok, so this is a CentOS library. I'm on Ubuntu so I don't have access to yum, is it possible to get this running on a Debian-based system?
I have only tested it on centos, but the particularly required library is netcdf-python.
For this reason, I think that installing netcdf-python from the source will probably work for running ubutnu.
See below
https://unidata.github.io/netcdf4-python/netCDF4/index.html