You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Feature Request: Add setting to exclude specific Python interpreters from the environment list #26313
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.
Activity