How can I install netcdf4-python to ubuntu14.04?

Beata picture Beata · Jul 17, 2015 · Viewed 12.6k times · Source

I would like to install netcdf4-python to my Ubuntu14.04. The libhdf5-dev_1.8.11_5ubuntu7_amd64.deb and libnetcdf-4.1.3-7ubuntu2_amd64.deb are installed. I downloaded netcdf4-1.1.8.tar.gz from https://pypi.python.org/pypi/netCDF4#downloads I tried configure it by

./configure --enable-netcdf-4 –with-hdf5=/usr/include/ --enable-share –prefix=/usr

but I got the following message:

bash: ./configure: No such file or directory

I do not know how I can install netcdf4-python. I would appreciated if someone helped me.

Answer

jhamman picture jhamman · Jul 30, 2015

I would strongly recommend using the Anaconda Python distribution. The full Anaconda distribution includes netcdf4 and the required libraries.