I have Python 3.8 installed alongside SQLite 3.16.2 on Debian 9.12 and I need to upgrade to a newer version of SQLite. I've downloaded and compiled the amalgamation available on the SQLite's site, and put it in /usr/bin
, so when I do
$ sqlite3 --version
I get 3.32.3 in response (which is the version I compiled).
However, when I do
$ python3.8
>>> import sqlite3
>>> sqlite3.sqlite_version
I get 3.16.2, which is the earlier version. How do I change the SQLite version picked up by Python?
mkrieger1 suggested that this question may answer mine. It won't work here, as the solution provided there is directed at Python 2, not Python 3. pysqlite2
does not work with Python 3.