【问题标题】:How can i install netCDF4?如何安装 netCDF4?
【发布时间】:2019-03-26 20:25:20
【问题描述】:

我在这里尝试了脚本: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

【问题讨论】:

  • 欢迎来到 SO!如果您添加有关您的平台和预期结果的更多详细信息,将会有所帮助。
  • 对不起,我可以给你什么样的细节来帮助我?我不明白如何安装它,但我需要它来完成大学工作。教授告诉我安装这个,目的是应用建模数据方法并绘制结果。

标签: terminal installation netcdf4


【解决方案1】:

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

【讨论】:

    猜你喜欢
    • 2015-10-06
    • 2016-07-09
    • 2021-06-04
    • 2014-07-21
    • 2021-06-01
    • 2018-09-23
    • 2015-04-04
    • 2013-08-09
    • 2018-10-24
    相关资源
    最近更新 更多