Notes on How to Install python netCDF4 package on Unix Sys

Notes on How to Install python netCDF4 package on Unix Sys

Postby yiboj » Mon May 15, 2017 12:13 pm

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: 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.
yiboj
 
Posts: 100
Joined: Mon Mar 30, 2015 11:22 am

Return to Tutorial