Forums

Updating old version of sqlite3

Hi I'm trying to host this flask app and I'm using a package that runs sqlite3 version 3.42 but pythonanywhere is running 3.31.1 which doesn't work with my app can you please update my sqlite3 ? I followed the article on pythonanywhere on how to compile C package but got stuck at sudo make install with sudo isn't found error thank you

""" TOTURIAL""" Compiling C Programs You can't use apt or similar package managers to install programs on PythonAnywhere, because you do not have root access to the machine where your code runs -- in particular, you can't use the sudo command.

However, if you want to install a Linux tool that is written in C into your home directory, it's often possible.

Specifically, if the tool that you want to install has instructions on how to compile it from source, and the steps documented by the tool to do that are:

Get the source (either by downloading it from a link and using tar to unpack it, or by using git clone cd into the source directory Run ./configure Run make Run sudo make install ...then you can often get it to work by following those steps, but adding the flag --prefix=/home/$HOME/.local to the ./configure line, and then missing out the sudo on the install line.

Unfortunately the version of SQLite used on PythonAnywhere is not something you can upgrade; the code to access it from Python is "baked in" to the Python binary.