【问题标题】:Udunits2 installation in python在 python 中安装 Udunits2
【发布时间】:2021-12-07 08:37:20
【问题描述】:

我正在研究一些需要保守重映射算法的气候数据模拟。该算法在 cf-python 库中可用。但是 cf python 需要 udunits2 包作为其依赖项之一。经过大量搜索,我发现 udunits2 的源文件是用 C 编写的。我还找到了一个 python 包装器here,但由于缺少 vcvarsall.bat 文件而无法运行它。 我发现这个discussion 说 udunits2 的 python 模块可用,但链接不起作用。

谁能指导我一些关于如何在 python 中安装 udunits 的简单步骤? 我正在尝试使用 iris 和 cf python 库进行气候数据模拟,这两个库都需要 udunits2。

【问题讨论】:

    标签: python python-iris


    【解决方案1】:

    安装 Iris 及其依赖项的最简单方法是使用 Conda。这里有说明: https://scitools-iris.readthedocs.io/en/stable/installing.html#installing-using-conda-users

    cf-python 在这里也有使用 Conda 安装的说明: https://ncas-cms.github.io/cf-python/installation.html#conda

    【讨论】:

      猜你喜欢
      • 2018-10-25
      • 2017-07-06
      • 2018-04-14
      • 1970-01-01
      • 2018-09-23
      • 2016-04-20
      • 2022-01-17
      • 2013-01-03
      • 2016-08-20
      相关资源
      最近更新 更多