SQLite Forum

how to force python to use recent sqlite3 version
Login
Is there a way to force python to use the recent way of sqlite3?

$ python -c "import sqlite3; print(sqlite3.sqlite_version)"
3.22.0

$ sqlite3 -version
3.30.0 2019-10-04 15:03:17 c20a35336432025445f9f7e289d0cc3e4003fb17f45a4ce74c6269c407c6e09f

$ whereis sqlite3
sqlite3: /usr/local/bin/sqlite3

petr@husova:~$ python
Python 2.7.17 (default, Apr 15 2020, 17:20:14) 
[GCC 7.5.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sqlite3
>>> print(sqlite3.__file__)
/usr/lib/python2.7/sqlite3/__init__.pyc