python - 在 OpenShift 上获取适用于 python3 的 sqlite icu 分词器

标签 python sqlite python-3.x openshift fts3

我在 OpenShift 上运行的 Python3 应用程序中使用 FTS3 sqlite 表。不幸的是,python3.3 安装包含一个 sqlite3 模块,没有“uci”标记器。在这种情况下,如何使用 uci 标记化的 FTS3 表? “unicode61”标记器也可以,但是 sqlite 版本太旧(3.6.20),无法支持它。

最佳答案

获取最新 sqlite 版本的最简单方法似乎是使用 apsw而不是标准库中的 sqlite3 模块。通过使用 python setup.py fetch --all --missing-checksum-ok build --enable-all-extensions install test 构建它,最新的 sqlite 版本将被下载并编译到模块中,包括所有扩展.

关于python - 在 OpenShift 上获取适用于 python3 的 sqlite icu 分词器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31935287/

相关文章:

python - PyPDF2 : writing output to stdout fails with python3

python - 转换数据帧: several columns to single by order

python - 查找两个定向梯度特征直方图之间的距离

python - 使用 SQLAlchemy 添加到数据库时出现奇怪的类型错误

java - Android - 如何修复 java.lang.IndexOutOfBoundsException 错误 : Index: 0, 大小:0

python - 有没有人有 Python 3 备忘单

python - 在 Gensim 中对标记文档使用自定义标签

python - 忽略 python argparse 中的空间

c# - 在 Mono 中使用 LINQ 插入 Sqlite 数据库会抛出 TargetInitationException 和 SqliteException

python - 创建音乐 QWERTY 键盘。播放错误声音而不是声音