1. Install the target version
pyenv install 3.11.32. Shell into this specific python version
pyenv shell 3.11.33. Use this python version to create virtualenv in current directory
python -m venv .venv…or use virtualenv:
virtualenv .venv -p $(pyenv which python)Package management: pdm
pyenv globalshould be set to something other thansystem