【发布时间】: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