Aug 12, 2024
The virtualenv is set by Poetry, not by pyenv. After calling poetry init you need to call poetry env use $(pyenv which python) to set the correct Python version to the project. Otherwise, the Python version of Poetry will be used.
Does this answer your question?