A good playground to install the required sofware is GitHub Codespaces.
sudo apt-get update
sudo apt-get install -y python3 python3-pip
sudo pip3 install dbt-core
# This specific example also needs an adapter for a local DuckDB database
sudo pip3 install dbt-duckdb