Python 2.7.3 on Mac OS X Snow Leopard (downloaded from python.org) tells me that it uses sqlite 3.6.12 ( sqlite3.sqlite_version ). However, to use foreign keys I need at least sqlite 3.6.19.
How to update sqlite yourself?
I already tried pip install pysqlite (from this question / answer: Updating the SQLite3 assembly on my python installation ), but sqlite_version has not changed. pip search sqlite shows that pysqlite 2.6.3 is installed, but I still have both python and python2.7 commands
>>> import sqlite3 >>> sqlite3.sqlite_version #3.6.12 >>> sqlite3.version #2.6.0 (yeah, no 2.6.3)
source share