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