Make sure a recent version of Python 3 is installed on your system, e.g.:

sudo apt install python3

Confirm that you can invoke it from the command line:

python3 --version