If you don’t want to recompile Python and you’re using a virtualenv you can do this to set it up without affecting the system as a whole (I’ve done this with Ubuntu 16/18):
-
Download SQLite tarball from https://www.sqlite.org/download.html
-
Extract the contents and cd into the folder.
-
Run the following commands:
./configure
sudo make install
-
Now edit the
activate
script used to start your virtualenv so Python looks in the right place for the newly installed SQLite. Add the following line to the top of/path/to/virtualenv/bin/activate
:export LD_LIBRARY_PATH=”/usr/local/lib”
Now, when active, Django 2.2+ should work fine in the virtualenv. Hope that helps.