How to upgrade sqlite 3.8.2 to >= 3.8.3

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):

  1. Download SQLite tarball from https://www.sqlite.org/download.html

  2. Extract the contents and cd into the folder.

  3. Run the following commands:

    ./configure

    sudo make install

  4. 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.

Leave a Comment