Repository navigation
invalid python Interpreter for conda virtual environment #25650
Description
Activity
- addedtriage-neededNeeds assignment to the proper sub-teamNeeds assignment to the proper sub-team
on Dec 11, 2025 I can add the python locator output:
2025-12-11 11:15:02.840 [info] Discovered manager: (Conda) /home/yann/miniconda3/bin/conda
2025-12-11 11:15:02.841 [info] Discovered env: /home/yann/miniconda3/envs/phasechange/bin/python
2025-12-11 11:15:02.845 [info] Discovered env: /usr/bin/python3
2025-12-11 11:15:02.845 [info] Discovered env: /bin/python3
2025-12-11 11:15:04.973 [info] Discovered env: /home/yann/miniconda3/bin/python
2025-12-11 11:15:04.974 [info] Discovered env: /home/yann/miniconda3/envs/fenicsx-env/bin/python
2025-12-11 11:15:04.974 [info] Locator Conda took 2.140131732s
2025-12-11 11:15:04.974 [info] Locator Homebrew took 48.543µs
2025-12-11 11:15:04.974 [info] Locator LinuxGlobal took 6.679713ms
2025-12-11 11:15:04.974 [info] Locator PipEnv took 47.423µs
2025-12-11 11:15:04.974 [info] Locator Pixi took 15.977µs
2025-12-11 11:15:04.974 [info] Locator Poetry took 39.633042ms
2025-12-11 11:15:04.974 [info] Locator PyEnv took 36.032406ms
2025-12-11 11:15:04.974 [info] Locator Venv took 21.575µs
2025-12-11 11:15:04.974 [info] Locator VirtualEnv took 39.994µs
2025-12-11 11:15:04.974 [info] Locator VirtualEnvWrapper took 44.982µs
2025-12-11 11:15:04.974 [info] Locator GlobalVirtualEnvs took 562.57µs
2025-12-11 11:15:04.974 [info] Locator Locators took 2.141370344s
2025-12-11 11:15:04.974 [info] Locator Path took 320.681861ms
2025-12-11 11:15:04.974 [info] Locator Workspaces took 23.679258ms
2025-12-11 11:15:04.975 [info] Refresh completed in 2141ms
2025-12-11 11:15:17.880 [info] Resolved Python Environment /home/yann/miniconda3/envs/fenicsx-env/bin/pythonHello friend, did you figure it out? I'm having the same issue, immediately after VSCode updated to 1.107. Not sure if it's an extension issue or VS issue
Note yet. It was working fine last week. I'll test it at home this evening to see if i have this problem on my other computers.
- addedarea-environmentsFeatures relating to handling interpreter environmentsFeatures relating to handling interpreter environments
on Dec 11, 2025 - addedbugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bugand removedtriage-neededNeeds assignment to the proper sub-teamNeeds assignment to the proper sub-team
on Dec 11, 2025 Is it any better when
Try install https://marketplace.visualstudio.com/items?itemName=ms-python.vscode-python-envsCan you update Python extension, Python environment extension to latest and see if you can still repro?
Also add"python.useEnvironmentsExtension": true,to your settings.json.Please file issue on https://github.com/microsoft/vscode-python-environments/issues if you see problem again,
I rolled back the Python Environments extension to Pre-Release Version, and it seemed to have worked
Reacted by Eleanor BoydI've been seeing the issue today trying to select my python 3.10.19 interpreter inside my conda environment. Tried rolling back python environments extension to prerelease and no luck
- addedtriage-neededNeeds assignment to the proper sub-teamNeeds assignment to the proper sub-team
on Dec 17, 2025 I updated my conda from conda-25.11.0 to conda-25.11.1, and it's working again. It seems that it has nothing to do with VScode or Python Environments extension. I also updated the python extension, prior to the update of conda, which changed nothing. Thus it seems that the solution was to update conda.
Reacted by Van Tien PhamI updated my conda from conda-25.11.0 to conda-25.11.1, and it's working again. It seems that it has nothing to do with VScode or Python Environments extension. I also updated the python extension, prior to the update of conda, which changed nothing. Thus it seems that the solution was to update conda.
Same here, updated from conda-25.11.0 to conda-25.11.1, and it works!
- addedconfirmation pendingThe issue needs to be confirmed through a maintainer reproducing the bug.The issue needs to be confirmed through a maintainer reproducing the bug.and removedtriage-neededNeeds assignment to the proper sub-teamNeeds assignment to the proper sub-team
on Mar 13, 2026 🤖 Thanks for the additional confirmations. Two users reported that upgrading Conda from 25.11.0 to 25.11.1 resolved this, but the report that caused the issue to be reopened did not include a Conda version or a follow-up. Could someone still affected confirm this on the latest Python and Python Environments extensions with a current Conda release, and include the Python and Python Environments output logs plus the output from
Python: Report Issue? Issues markedinfo-neededautomatically close after 30 days without a reply.- addedinfo-neededIssue requires more information from posterIssue requires more information from poster
on Sep 23, 2026
Behaviour
I've got the following message when selecting a python interpreter inside a conda env.
An Invalid Python interpreter is selected, please try changing it to enable features such as IntelliSense, linting, and debugging. See output for more details regarding why the interpreter is invalid.
Steps to reproduce:
Diagnostic data
Version VSC windows, conda installer on WSL.- VSC 1.107.0 :
- Python extension
- settings.json :
Version: 1.107.0 (user setup) Commit: 618725e67565b290ba4da6fe2d29f8fa1d4e3622 Date: 2025-12-10T07:43:47.883Z Electron: 39.2.3 ElectronBuildId: 12895514 Chromium: 142.0.7444.175 Node.js: 22.21.1 V8: 14.2.231.21-electron.0 OS: Windows_NT x64 10.0.26200Identifier ms-python.python Version 2025.20.0{"python.experiments.enabled": false,
"python.terminal.activateEnvironment": true,
"python.useEnvironmentsExtension ": false,
"python.terminal.activateEnvInCurrentTerminal": true,
"python.terminal.shellIntegration.enabled": false
}
In the VSC terminal :
I can change the conda env in the terminal :
I can use the python Interpreter:
The conda info are:
Output for
Pythonin theOutputpanel 2025-12-11 10:50:49.029 [info] Native locator: Refresh started
2025-12-11 10:50:49.029 [info] Native locator: Refresh started
2025-12-11 10:50:49.029 [info] Skipping ActivatedEnv Detection: process.env.VSCODE_CLI !== '1'
2025-12-11 10:50:49.033 [info] > pyenv which python
2025-12-11 10:50:49.034 [info] cwd: .
2025-12-11 10:50:49.180 [info] Conda environment manager found at: /home/yann/miniconda3/bin/conda
2025-12-11 10:50:49.180 [info] Using conda: /home/yann/miniconda3/bin/conda
2025-12-11 10:50:49.188 [info] > ~/miniconda3/bin/conda info --json
2025-12-11 10:50:50.833 [info] Native locator: Refresh finished in 2414 ms
2025-12-11 10:50:52.552 [info] Starting Pylance language server.
2025-12-11 10:51:00.684 [info] Native locator: Refresh started
2025-12-11 10:51:00.694 [info] Conda environment manager found at: /home/yann/miniconda3/bin/conda
2025-12-11 10:51:00.694 [info] Conda set to: /home/yann/miniconda3/bin/conda
2025-12-11 10:51:02.833 [info] Native locator: Refresh finished in 2149 ms
2025-12-11 10:52:47.133 [info] > ~/miniconda3/bin/conda info --json
2025-12-11 10:53:36.295 [info] Native locator: Refresh started
2025-12-11 10:53:36.301 [info] > ~/miniconda3/bin/conda info --json
2025-12-11 10:53:36.308 [info] Conda environment manager found at: /home/yann/miniconda3/bin/conda
2025-12-11 10:53:36.308 [info] Conda set to: /home/yann/miniconda3/bin/conda
2025-12-11 10:53:38.501 [info] Native locator: Refresh finished in 2205 ms
2025-12-11 10:55:06.381 [info] > ~/miniconda3/bin/conda info --json