1

我正在尝试使用模糊匹配器,但是当我运行代码时出现以下错误:

OperationalError: no such module: fts4

此外,我尝试C:\ProgramData\Anaconda3\DLLs通过使用代码放置最新的 sqlite.dll 文件来加载扩展

import sqlite3
conn = sqlite3.connect(':memory:')
cur = conn.cursor()
conn.enable_load_extension(True)
for (val,) in cur.execute('pragma compile_options'): 
    print (val)

但没有扩展显示并返回以下代码,

COMPILER=msvc-1916
THREADSAFE=1
4

1 回答 1

2

这些是我遵循的步骤并启用了扩展,

1. Update the Sqlite by following on anaconda:
conda install -c anaconda sqlite

2.Download and Extract the following folder
https://github.com/rogerbinns/apsw/releases/download/3.33.0-r1/apsw-3.33.0-r1.zip

3. Run Anaconda & following command in that folder:
python setup.py install test
于 2020-11-02T07:14:40.233 回答