lundi 26 octobre 2015

I have python's sqlite3 module. Do I still need to install SQLite?

Noob here just started exploring SQLite lately and have been using Python's sqlite3 module, so far so good. Except today when I typed sqlite3 directly into the terminal and got

"The program 'sqlite3' is currently not installed. You can install it by typing: sudo apt-get install sqlite3"

Same thing when I typed in sqlite.

That came as a surprise because according the doc, isn't sqlite3 just a "DB-API 2.0 (whatever that means) interface for SQLite databases"? If it's just a wrapper, how have I been able to run SQLite commands with this module without the "real" SQLite library installed? Unless Python's sqlite3 come with its own pre-compiled SQLite and doesn't need to use the "real" one in the environment...

BTW I do see a libsqlite3 package on my machine but running man libsqlite3, apropos libsqlite3, libsqlite3 give me nothing.

Aucun commentaire:

Enregistrer un commentaire