netcdf - Installing netCDF4 for Python fails, how to fix? -
i have tried installing netcdf4 windows (from here) , still cannot import netcdf4 modules.
python 2.7.3 (default, apr 10 2012, 23:31:26) [msc v.1500 32 bit (intel)] on win32 >>> import numpy >>> import scipy >>> import netcdf4 traceback (most recent call last): file "<stdin>", line 1, in <module> importerror: no module named netcdf4
there modules in site-packages directory:
james@desktop /cygdrive/c/python27/lib/site-packages $ ls net* netcdf.dll netcdf4_utils.pyo netcdftime.pyc netcdf4.pyd netcdf4-1.0.4-py2.7.egg-info netcdftime.pyo netcdf4_utils.py netcdf4-1.0.5-py2.7.egg-info netcdf4_utils.pyc netcdftime.py
are there further steps need complete after running installer?
thanks!
i presume site-packages directory name it's cygwin python.
you need ensure site-packages directory on python module search path. forget how done--i have notes on how did it, they're @ work , i'm @ home--but there instructions on python site. cygwin python want unix instructions. adding file called site.pth somewhere under /usr??
Comments
Post a Comment