I have installed both python 3.9 and sqlite 3.33.0 by compiling from source code.
As shown below:
sqlite3
$ sqlite3 --version
3.33.0 2020-08-14 13:23:32...
Python
$ python3 --version
Python 3.9.0
However, when I check in python it showed:
>>> import sqlite3
>>> sqlite3.sqlite_version
'3.7.17
After some reading, i have tried
$ which sqlite3
/usr/local/bin/sqlite3
export LD_LIBRARY_PATH=/usr/local/bin
But this still have not resolved to the issue.
How do I get Python to use my own installation of sqlite?
Any help will be appreciated!
Update
I was able to get python3.9 to use my own installation of sqlite3 by recompiling python with this answer