pyenv install -s
pyenv exec pip install poetry
pyenv exec poetry install
That incantation goes into my README.md.Inconvenient, but I’ve come to accept it. I only need to run it after initial checkout and when the .python-version changes.
pyenv local 3.11.0
poetry init
poetry env use $(pyenv which python)
poetry install