Use .python-version to select python interpreter #22744
Labels
feature-request
Request for new features or functionality
triage-needed
Needs assignment to the proper sub-team
pyenv uses a .python-version file when selecting the python version. It would be super nice if the workspace Python Interpreter selection would use .python-version to select the appropriate pyenv version on a system with pyenv.
Current behaviour
python.defaultInterpreterPath
is set, this will be the workspace's python interpreter when opening a workspace containing a .python-version file, rather than the version specified in .python-version which might differ.pyenv shell
to set the terminal to the workspace's python interpreter. This may differ from the version in .python-version. This conflicts with the behaviour of pyenv in a non-vscode terminal.The text was updated successfully, but these errors were encountered: