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
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 Settings
Python Debugger: Clear Cache and Reload Window
Python: 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).
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 Interpretercommand 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 WindowRoot 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:
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)