2009-10-12 34 views
20
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' 

Câu hỏi:Python sqlite3 phiên bản

  • Tại sao là phiên bản của sqlite mô-đun '2.4.1'
  • Whats lý do đằng sau bundling một sqlite cũ như với Python? Số phát hành sqlite nói 2002 ngày 13 tháng 3 (2.4.1).

Trả lời

51
Python 2.5.1 
>>> import sqlite3 
>>> sqlite3.version 
'2.3.2' 
>>> sqlite3.sqlite_version 
'3.3.4' 

phiên bản - pysqlite phiên bản
sqlite_version - phiên bản sqlite

+1

Odd verisoning trên một phần của SQLite. – whatnick

+5

Bộ điều hợp cơ sở dữ liệu pysqlite là một dự án hoàn toàn riêng biệt từ dự án cơ sở dữ liệu sqlite3 cơ sở, vì vậy các số phiên bản không liên quan. Xem http://stackoverflow.com/questions/1545479/force-python-to-forego-native-sqlite3-and-use-the-installed-latest-sqlite3-vers/1546162 để thảo luận mở rộng. –

Các vấn đề liên quan