【问题标题】:Enabling Rtree on sqlite3 python module在 sqlite3 python 模块上启用 Rtree
【发布时间】:2018-06-23 09:04:31
【问题描述】:

尝试运行以下代码:

conn.executescript("""
            CREATE VIRTUAL TABLE Hashes USING rtree(

给出以下错误:sqlite3 operation error no such module: rtree

为了解决这个问题,我从启用了 rtrees 的 sqlite 源构建了 windows dll。

我应该把 dll 放在哪里以便 sqlite3 python 模块识别它?

在 sqlite3 python 模块上启用 rtree 模块还有其他修复方法吗?

python 2.7 版

【问题讨论】:

  • 无论您在哪里找到旧的 DLL。但是您的 Python 可能已将 SQLite 编译为自己的可执行文件。

标签: python python-2.7 module sqlite


【解决方案1】:

我认为应该复制到Dlls目录中

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2020-12-13
    • 1970-01-01
    • 2015-04-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-10-20
    • 2023-03-18
    相关资源
    最近更新 更多