If you are noticing that poetry isn’t using the python version you specify via .python-version in your local directory you can fix your issue with the following command.
poetry config virtualenvs.prefer-active-python true
Poetry with Pyenv
@jjk 12/16/2022
If you are noticing that poetry isn’t using the python version you specify via .python-version in your local directory you can fix your issue with the following command.
poetry config virtualenvs.prefer-active-python true