【问题标题】:Install libspatialindex in windows to enable rtree in Python在 windows 中安装 libspatialindex 以在 Python 中启用 rtree
【发布时间】:2014-10-08 18:47:32
【问题描述】:

我在 Windows 7 64 位中使用 Python 的 Canopy 安装。 Rtree 似乎安装正确。

但是,当我尝试导入 rtree 时,出现以下错误:

WindowsError: [Error 126] The specified module could not be found

我在 Ubuntu 中遇到了类似的问题,如果不一样的话。我通过软件管理器直接安装 libspatialindex 解决了这个问题。这在 Windows 中是不可能的,我找不到明确的安装方法。

我下载并安装了完整的 OSGeo4W 套件,并在 Canopy 中重新安装了 Rtree,希望 libspatialindex 包含在捆绑包中。那没用。

有没有办法解决这个问题?

【问题讨论】:

  • 我应该把这个问题移到 GIS 页面吗?无论如何它可以保留在这里并显示在 GIS 组中吗?

标签: python windows canopy spatial-index r-tree


【解决方案1】:

RTree 是你真正想要的吗?最好的来源是 Chris Gohlke 的构建,您可以按照https://support.enthought.com/entries/23389761-Installing-packages-into-Canopy-User-Python-from-the-OS-command-line 中的说明将其安装到 Canopy 中

【讨论】:

    猜你喜欢
    • 2015-04-14
    • 1970-01-01
    • 1970-01-01
    • 2018-06-25
    • 2022-09-29
    • 2018-06-23
    • 2020-12-13
    • 2021-10-20
    相关资源
    最近更新 更多