Page 1 of 1

Notes on How to Install python netCDF4 package on Unix Sys

PostPosted: Mon May 15, 2017 12:13 pm
by yiboj
Using Anaconda to install python packages is easy but tricky. Here is the steps I learned to install the netCDF4 packages on unix machine.

When you run the anaconda command to install netCDF4 package, it says that the hdf4 is installed along with it using the command:
Code: Select all
$> conda install -c anaconda netcdf4

But you will get error message below when you run it:
Code: Select all
ImportError: cannot open shared object file: No such file or directory

The problem is that you have to manually install hdf4 package first with the following command:
Code: Select all
$> conda install hdf4

Hope this saves you some headache.