I'm using Python 2.7.6 (default, Mar 22 2014, 22:59:56) [GCC 4.8.2] on linux2 on my Debian, and I'm usually using module sqlite3
without any problem.
I compiled a Sqlite extension spellfix
, I get this error when loading it:
sqlite3.OperationalError: ./spellfix.so: undefined symbol: sqlite3_malloc64
I think it might be because the sqlite3
module is too old:
import sqlite3
print sqlite3.version # 2.6.0
print sqlite3.sqlite_version # 3.8.2
(On another machine where sqlite3.sqlite_version
is 3.8.7.x the extension loads fine).
I tried:
pip install --upgrade pysqlite
but it's still the same: sqlite3.sqlite_version
stays 3.8.2.
How to upgrade the Python sqlite3 module (which is built-in in the standard library)?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…