Note
This guide can only be used with Raspberry Pi OS 12 Bookworm, it will not work with any older (e.g. Raspberry Pi OS 11 Bullseye) or newer (e.g. Raspberry Pi OS 13 Trixie) releases. You can check your version of Raspberry Pi OS by running:
bash
lsb_release -a
Raspberry Pi OS "Bookworm" has all required packages available in official repositories. Install them with apt:
bash
sudo apt update sudo apt -y install python3 python3-dev python3-venv git openjdk-17-jre-headless build-essential nano