Operating environment
CentOS 6.8
Python 2.6.6
read_nc.py
import netCDF4
I got the following error when I ran the above.
$ python read_nc.py
Traceback (most recent call last):
File "read_nc.py", line 1, in <module>
import netCDF4
ImportError: No module named netCDF4
Install the related packages as follows.
sudo yum install netcdf4-python.x86_64
Recommended Posts