This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
>From: "hxd" <address@hidden> >Subject: I have a problem. >Organization: ? >Keywords: 200004300216.e3U2GnG15423 netCDF Python Hi, > Hello, I have a problem on netcdf. Could you help me? > > The problem is : When I run a program on Linux using Python, there is > an error that the system can not find the netCDF module. But I have > install netCDF. I think it happen because I do not append the netCDF > directory into the sys.path. Could you tell me which file contain the > netCDF module? > > I install NumPy, ScientificPython and MMTK through the rpm packages. > and all of those are installed in "/usr/lib/python1.5/site-packages", > and netcdf is installed in "/home/hxd/netcdf". If you have built netcdf by following the instructions in /home/hxd/netcdf/src/INSTALL, then the netCDF library is either installed in /home/hxd/netcdf/lib/libnetcdf.a (the default) or in the directory you specified as the destination using the "--prefix" argument to the "configure" script. If you installed the netcdf library using an rpm package, for example from http://starship.python.net/crew/hinsen/netcdf-3.4-4.i386.rpm rather than building it from source, it's wherever that process installed it. Sorry, but we aren't the developers of NumPy, aren't very familiar with Python, and don't have it installed here, so we aren't able to debug this problem any further from the information given. I suggest you contact the author of NumPy if the problem is related to getting that Python module to work. --Russ _____________________________________________________________________ Russ Rew UCAR Unidata Program address@hidden http://www.unidata.ucar.edu