Skip to content

Feature Request: Add setting to exclude specific Python interpreters from the environment list #26313

Open

Description

@hrbga274-alt

Is your feature request related to a problem?

I have MSYS2 UCRT64 installed on Windows (located on the D drive). Its Python interpreter appears in the VSCode Python extension's interpreter list because D:\msys64\ucrt64\bin is in the system PATH.
This Python is a dependency of other UCRT64 packages, so it cannot be uninstalled without breaking the toolchain.

Describe the solution you'd like

Add a way to hide or exclude specific interpreters, for example:

  • python.excludeInterpreterPaths: a list of interpreter paths to hide
  • python.excludeInterpreterPatterns: support path patterns
  • Or allow right-clicking an interpreter in the selection list and choosing "Hide this interpreter"

Describe alternatives you've considered

  • Using python.defaultInterpreterPath to fix the interpreter per project
  • Removing MSYS2 Python from PATH, which may affect GCC/GDB and other UCRT64 tools
  • Uninstalling mingw-w64-ucrt-x86_64-python, which is not possible when it is a required dependency

Additional context

Interpreter path:
D:\msys64\ucrt64\bin\python.exe
D:\msys64\ucrt64\bin\python3.14.exe
D:\msys64\ucrt64\bin\python3.exe
It is discovered by the extension through the system PATH and appears in the interpreter selection list even though it should not be used for Python development.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-requestRequest for new features or functionalitytriage-neededNeeds assignment to the proper sub-team

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions