The Havoc API requires Python 3.10, install.sh script will help you create the necessary environment to use it on Ubuntu 20.04:
bash install.sh
Ubuntu 22.04 comes with the necessary version of Python so it would only be necessary to run:
pip3 install -r requirements.txt