I built a new version of sqlite3 from source, which works for the commandline and Django:
mkdir ~/src
cd ~/src
wget https://www.sqlite.org/2020/sqlite-autoconf-3330000.tar.gz
tar xzf sqlite-autoconf-3330000.tar.gz
cd sqlite-autoconf-3330000/
./configure --prefix=$HOME
make
make install
Then make sure your ~/bin
is at the front of your PATH
and set LD_LIBRARY_PATH
to your ~/lib
. You can edit ~/.bash_profile
so that it sets those:
export $HOME/bin:$PATH
export LD_LIBRARY_PATH=$HOME/lib
Then you can source ~/.bash_profile
and do sqlite3 --version
, which should output the version of your new sqlite3
.