如何安装netCDF4?

时间:2019-03-26 20:25:21

标签: terminal installation netcdf4

我在这里尝试了脚本:https://gist.github.com/perrette/cd815d03830b53e24c82?fbclid=IwAR2loEbaawG9iOUd3yq3mFUUBUTHKLUJfTdU18umq9cJDF-fIlQqQ2PxATA

然后我下载了hdf5-1.10.5和netcdf-4.6.1并将其存储在桌面上。当我打开目录为Desktop / hdf5-1.10.5的终端并运行此命令

./configure --prefix=/usr/local --enable-shared --enable-hl make sudo make install

我收到此错误:

configure: WARNING: you should use --build, --host, --target
configure: WARNING: you should use --build, --host, --target
configure: WARNING: you should use --build, --host, --target
configure: WARNING: you should use --build, --host, --target
configure: WARNING: unrecognized options: --enable-hl
configure: netCDF 4.6.1
checking build system type... Invalid configuration `make': machine `make' not recognized
configure: error: /bin/bash ./config.sub make failed

1 个答案:

答案 0 :(得分:0)

如果您尝试为python安装netCDF4,则可以使用pip install netCDF4从命令行进行安装,它会自动处理其他任何依赖项,例如C库。如果您要使用其他平台,则需要指定哪个平台。