-
Notifications
You must be signed in to change notification settings - Fork 73
Description
Description
As shown in the attached screenshot, my active terminal is using the base environment (highlighted in the bottom-left corner).
I selected base as the project interpreter via Ctrl + Shift + P → Python: Select Interpreter (highlighted in the bottom-right corner).
However, when I use the debugpy extension to debug the current Python file, the debugger always launches using the openr1 environment instead (note: this is the first Conda environment name that appears in the Python: Select Interpreter command palette), therefore cause import error: no module found.
Even after executing the following commands, the issue persists:
Python: Clear Workspace Interpreter SettingsPython Debugger: Clear Cache and Reload WindowPython: Clear Cache and Reload Window
Root Cause
After extensive troubleshooting, I discovered that the issue is caused by the Python Environment Manager VSCode extension.
Once I uninstalled that extension, everything worked correctly — the debugger began using the selected interpreter as expected.
Note
The VSCode extension Python Environment Manager (deprecated) doesn't have this problem.
Expected Behavior
The debugger should respect the interpreter selected via Python: Select Interpreter.
Actual Behavior
The debugger ignores the selected interpreter and always uses the first Conda environment (openr1).
Environment
-
VSCode version:
Version: 1.105.1 (Universal) Commit: 7d842fb85a0275a4a8e4d7e040d2625abbf7f084 Date: 2025-10-14T22:33:36.618Z (2 wks ago) Electron: 37.6.0 ElectronBuildId: 12502201 Chromium: 138.0.7204.251 Node.js: 22.19.0 V8: 13.8.258.32-electron.0 OS: Darwin arm64 25.0.0
-
Python Environment Manager version: 1.10.0
-
Python Debugger version: 2025.14.1
-
Remote - SSH version: 0.120.0
-
OS version: MacOS 26.0.1 (25A362)