If you've been writing Python for more than a year, you know the ritual. A new project. A fresh terminal. And then:

pyenv install 3.12.3

pyenv local 3.12.3

python -m venv .venv

source .venv/bin/activate