How to update python-sqlite on mac osx -
python 2.7.3 on mac os x snow leopard (downloaded python.org), tells me using sqlite 3.6.12 (sqlite3.sqlite_version
). however, use foreign keys, need @ least sqlite 3.6.19.
how can update sqlite alone?
i tried pip install pysqlite
(from question/answer: updating sqlite3 build on python install), sqlite_version did not change. pip search sqlite
shows pysqlite 2.6.3 installed, still have, both commands python
, python2.7
>>> import sqlite3 >>> sqlite3.sqlite_version #3.6.12 >>> sqlite3.version #2.6.0 (yeah, no 2.6.3)
you'll first need install sqlite, build , install pysqlite
, making sure it's building against newly installed version of sqlite , not system's version of sqlite. alternately, if pysqlite dynamically linked, might able fiddle ld_library_path
make existing pysqlite load newer version of library.
for more, see: https://groups.google.com/group/python-sqlite/browse_thread/thread/9fb6694c803431eb
Comments
Post a Comment