--

Perhaps you mean you used poetry init using Python 3.12 and you want to use 3.11 instead?

Then you have to edit pyproject.toml and change ^3.12 to ^3.11.

Next run pyenv local 3.11 (if not already done).

Finally run poetry env use $(pyenv which python).

This should create a new virtualenv on 3.11.

--

--

Douwe van der Meij
Douwe van der Meij

No responses yet