Python 2.6.2 (r262:71605, Apr 14 2009, 22:40:02) [MSC v.1500 32 bit (Intel)] on
win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import sqlite3
>>> sqlite3.version
'2.4.1'
Questions:
- Why is the version of the sqlite3 module '2.4.1'
- Whats the reason behind bundling such an old sqlite with Python? The sqlite releaselog says 2002 Mar 13 (2.4.1).
1 Answer 1
Python 2.5.1
>>> import sqlite3
>>> sqlite3.version
'2.3.2'
>>> sqlite3.sqlite_version
'3.3.4'
version - pysqlite version
sqlite_version - sqlite version
Nick Dandoulakis
43.3k17 gold badges106 silver badges139 bronze badges
answered Oct 12, 2009 at 7:31
sdu
2,8384 gold badges32 silver badges30 bronze badges
Sign up to request clarification or add additional context in comments.
3 Comments
whatnick
Odd verisoning on the part of SQlite.
Ned Deily
The pysqlite database adapter is a totally separate project from the underlying sqlite3 database project so the version numbers are not related. See stackoverflow.com/questions/1545479/… for an extended discussion.
smartexpert
One liner to print to CLI:
python -c "import sqlite3; print(sqlite3.version); print(sqlite3.sqlite_version)"default