在Windows 64位Python上加载SQLite扩展失败
我正在编写一个Python程序,它在Windows8.1 Pro 64位上使用sqlite3模块 当我尝试加载sqlite扩展时,会引发sqlite3.OperationalError(找不到指定的过程) Python版本为3.3.5,适用于Windows 64位,请访问www.Python.org 因为我认为当生成的dll与Python 3.3.x一起使用时,sqlite3.dll应该更好地与msvcr100.dll链接,而不是与MinGW默认的msvcrt.dll链接,所以我制作了一个规范文件与msvcr100dll链接,并使用devkit MinGW 64位构建了sqlite3.dll和sqlite3.exe,如下所示 DevKit-mingw64-64-4.7.2-20130224-1432-sfx.exe SQLite源是SQLite-MEGALION-3080403.zip 在example.py中:在Windows 64位Python上加载SQLite扩展失败,python,windows,sqlite,Python,Windows,Sqlite,我正在编写一个Python程序,它在Windows8.1 Pro 64位上使用sqlite3模块 当我尝试加载sqlite扩展时,会引发sqlite3.OperationalError(找不到指定的过程) Python版本为3.3.5,适用于Windows 64位,请访问www.Python.org 因为我认为当生成的dll与Python 3.3.x一起使用时,sqlite3.dll应该更好地与msvcr100.dll链接,而不是与MinGW默认的msvcrt.dll链接,所以我制作了一个规范文
import sqlite3
con = sqlite3.connect(":memory:")
# enable extension loading
con.enable_load_extension(True)
# Load the fulltext search extension
con.load_extension("./sqlite3.dll")
python example.py
Traceback (most recent call last):
File "example.py", line 23, in <module>
con.load_extension("./sqlite3.dll")
sqlite3.OperationalError: 指定されたプロシージャが見つかりません。
它最终是这样工作的还是问题仍然没有解决?仅仅使用新构建的sqlite3.dll就解决了问题。请参见编辑零件。
Traceback (most recent call last):
File "example.py", line 23, in <module>
con.load_extension("./sqlite3.dll")
sqlite3.OperationalError: 指定されたプロシージャが見つかりません。
con.execute("create virtual table recipe using fts3(name, ingredients)")