Description
Type: Bug
Behaviour
The integrated terminal in VS Code Insiders does not activate the selected Python 3.12.10 environment. Instead, it defaults to the system-wide Python 3.11.12 installation.
- VS Code Insiders status bar correctly shows "Python 3.12.10" and hovering shows the path to the 3.12.10 executable (e.g., C:\Users\Kumar\AppData\Local\Programs\Python\Python312\python.exe).
- However, running commands in the integrated terminal shows:
python --version
outputs:Python 3.11.12
python -c "import sys; print(sys.executable)"
outputs:C:\Users\Kumar\AppData\Local\Programs\Python\Python311\python.exe
(the path to the 3.11.12 executable).
Steps to reproduce:
- Open VS Code Insiders with a Python project/file.
- Ensure Python 3.12.10 interpreter is selected for the workspace/user (verified by status bar hover).
- Ensure "python.terminal.activateEnvironment": true is set in User Settings.
- Open a new Integrated Terminal (e.g., PowerShell).
- Run
python --version
andpython -c "import sys; print(sys.executable)"
.
Expected behaviour
The integrated terminal in VS Code Insiders should activate the selected Python 3.12.10 environment. Running python --version
and python -c "import sys; print(sys.executable)"
in the Insiders terminal should report Python 3.12.10 and the path to its executable.
Diagnostic data
Output for Python
in the Output
panel (View
→Output
, change the drop-down the upper-right of the Output
panel to Python
)
Checked the "Python" output channel as requested, but it contained no log output related to the issue during reproduction steps, or the channel was not available in the dropdown list (despite python extensions installed properly).
Extension version: 2025.6.0
VS Code version: Code - Insiders 1.101.0-insider (53524ccad173e498ee03286727e3434fc9d51d5e, 2025-05-14T05:03:56.147Z)
OS version: Windows_NT x64 10.0.26120
Modes:
- Python version (& distribution if applicable, e.g. Anaconda): 3.12.10
- Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): System
- Value of the
python.languageServer
setting: Default
User Settings
languageServer: "Pylance"
Installed Extensions
Extension Name | Extension Id | Version |
---|---|---|
debugpy | ms- | 2025.8.0 |
js-debug | ms- | 1.100.1 |
js-debug-companion | ms- | 1.1.3 |
python | ms- | 2025.6.0 |
vscode-js-profile-table | ms- | 1.0.10 |
vscode-pylance | ms- | 2025.4.1 |
System Info
Item | Value |
---|---|
CPUs | AMD Ryzen 5 4500U with Radeon Graphics (6 x 2370) |
GPU Status | 2d_canvas: enabled canvas_oop_rasterization: enabled_on direct_rendering_display_compositor: disabled_off_ok gpu_compositing: enabled multiple_raster_threads: enabled_on opengl: enabled_on rasterization: enabled raw_draw: disabled_off_ok skia_graphite: disabled_off video_decode: enabled video_encode: enabled vulkan: disabled_off webgl: enabled webgl2: enabled webgpu: enabled webnn: disabled_off |
Load (avg) | undefined |
Memory (System) | 7.37GB (1.67GB free) |
Process Argv | --crash-reporter-id 486800b2-d006-4dab-8d1e-39b4ceee0da4 |
Screen Reader | no |
VM | 0% |
A/B Experiments
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
pythonvspyt551:31249597
vscod805:30301674
c4g48928:30535728
2i9eh265:30646982
962ge761:30841072
dsvsc014:30777825
dsvsc015:30821418
h48ei257:31000450
pythontbext0:30879054
cppperfnew:30980852
dwnewjupytercf:31046870
pythonrstrctxt:31093868
nativeloc1:31118317
e80f6927:31120813
dwcopilot:31158714
c3hdf307:31184662
6074i472:31201624
dwoutputs:31242946
customenabled:31248079
hdaa2157:31222309
copilot_t_ci:31222730
g012b348:31231168
pythoneinst12:31251391
bgtreat:31252123
c7cif404:31294349
31787653:31262186
3e8i5726:31271747
pythonpulldiag:31287486
6gi0g917:31259950
editoredits36407:31282444
996jf627:31264550
pythonrdcb7:31268811
usemplatestapi:31297334
0aa6g176:31307121
747dc170:31275146
pythoncompactctx:31296835
6518g693:31302842
pylancecolor:31288664
generatesymbolt:31280541
convertfstringf:31280702
gendocf:31280703
pylancequickfixf:31296867
923gi514:31307639
j97ad248:31306657
je023986:31307659