Build Python From Source

apt install libsqlite3-dev libreadline-dev

wget "https://www.python.org/ftp/python/3.8.2/Python-3.8.2.tgz"

tar -xvf Python-3.8.2.tgz
cd ./Python-3.8.2

./configure \
    --prefix ~/.bin/python3.8.2 \
    --enable-optimizations \
    --enable-loadable-sqlite-extensions

make -j$(nproc)
make install