然后我下载了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
答案 0 :(得分:0)
如果您尝试为python安装netCDF4,则可以使用pip install netCDF4
从命令行进行安装,它会自动处理其他任何依赖项,例如C库。如果您要使用其他平台,则需要指定哪个平台。