Notes on How to Install python netCDF4 package on Unix Sys

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:
But you will get error message below when you run it:
The problem is that you have to manually install hdf4 package first with the following command:
Hope this saves you some headache.
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: libmfhdf.so.0: 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.