Skip to content

Instantly share code, notes, and snippets.

@phoenixthrush
Created January 8, 2026 16:57
Show Gist options
  • Select an option

  • Save phoenixthrush/f348e85186ff78dc13bd20e28c59ae0e to your computer and use it in GitHub Desktop.

Select an option

Save phoenixthrush/f348e85186ff78dc13bd20e28c59ae0e to your computer and use it in GitHub Desktop.
VS Code Keeps Triggering pyenv Automatically #pyenv #vscode #python

microsoft/vscode-python#18875

VS Code’s Python extension auto‑activates environments in every new terminal.
If your interpreter comes from pyenv, this triggers pyenv automatically.
That’s why you see unexpected pyenv shell calls when opening terminals.
To disable this behavior, set "python.terminal.activateEnvironment": false in VS Code settings.
After that, terminals will stop auto‑activating pyenv.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment