Type: Bug
Behaviour
Cannot switch Python interpreters via the status bar or command Python: Select Interpreter; after selecting a different interpreter, the extension immediately switches back to the default interpreter.
Steps to reproduce:
- Just select another interpreter.
Diagnostic data
launch.json configuration
Output for Python in the Output panel (View→Output, change the drop-down the upper-right of the Output panel to Python)
2026-07-10 19:20:51.146 [info] 环境发现由 Python 环境扩展(ms-python.vscode-python-envs)管理。请查看“Python 环境”输出通道获取环境相关日志。
2026-07-10 19:20:51.181 [info] [test-by-project] Activating project-based testing mode
2026-07-10 19:20:51.182 [info] Native locator: Refresh started
2026-07-10 19:20:51.182 [info] [test-by-project] Subscribed to Python project changes
2026-07-10 19:20:51.185 [info] [test-by-project] Subscribed to Python environment changes
2026-07-10 19:20:53.206 [info] 正在启动 Pylance 语言服务器。
2026-07-10 19:20:53.391 [info] Active interpreter [global]: C:\Users\King_\AppData\Local\Python\pythoncore-3.14-64\python.exe
2026-07-10 19:20:53.393 [info] Native locator: Refresh finished in 2212 ms
2026-07-10 19:21:08.972 [info] Native locator: Refresh started
2026-07-10 19:21:10.319 [info] Native locator: Refresh finished in 1347 ms
2026-07-10 19:21:11.885 [info] Active interpreter [global]: C:\Users\King_\AppData\Local\Programs\Python\Python311\python.exe
2026-07-10 19:21:11.886 [info] Active interpreter [global]: C:\Users\King_\AppData\Local\Python\pythoncore-3.14-64\python.exe
Output for Python Debugger in the Output panel (View→Output, change the drop-down the upper-right of the Output panel to Python Debugger)
2026-07-10 19:03:48.842 [info] openReportIssue: Starting report issue flow
2026-07-10 19:03:48.848 [info] getActiveEnvironmentPath: new API envPath='c:\Users\King_\AppData\Local\Python\pythoncore-3.14-64\python.exe' resource='undefined'
2026-07-10 19:03:48.848 [info] resolveEnvironment: new API resolving from string='c:\Users\King_\AppData\Local\Python\pythoncore-3.14-64\python.exe'
2026-07-10 19:03:49.010 [info] openReportIssue: Resolved pythonVersion='3.14.6' envKind='ms-python.python:system'
2026-07-10 19:03:49.217 [info] openReportIssue: Issue reporter command executed
Extension version: 2026.5.2026070801
VS Code version: Code 1.128.0 (fc3def6774c76082adf699d366f31a557ce5573f, 2026-07-07T15:14:24-07:00)
OS version: Windows_NT x64 10.0.26200
Modes:
System Info
| Item |
Value |
| CPUs |
13th Gen Intel(R) Core(TM) i9-13900HX (32 x 2419) |
| GPU Status |
2d_canvas: enabled GPU0: VENDOR= 0x10de, DEVICE=0x28e0 [NVIDIA GeForce RTX 4060 Laptop GPU], DRIVER_VENDOR=NVIDIA, DRIVER_VERSION=32.0.15.9621 ACTIVE GPU1: VENDOR= 0x8086, DEVICE=0xa788 [Intel(R) UHD Graphics], DRIVER_VERSION=32.0.101.6790 GPU2: VENDOR= 0x8086, DEVICE=0xa788 [Intel(R) UHD Graphics], DRIVER_VERSION=32.0.101.6790 GPU3: VENDOR= 0x1414, DEVICE=0x008c [Microsoft Basic Render Driver], DRIVER_VERSION=10.0.26100.8521 Machine model name: Machine model version: 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 trees_in_viz: disabled_off video_decode: enabled video_encode: enabled webgl: enabled webgpu: enabled webnn: disabled_off |
| Load (avg) |
undefined |
| Memory (System) |
15.70GB (5.10GB free) |
| Process Argv |
--crash-reporter-id 241ea61a-af7c-4f9d-8fd5-d71358ced84d |
| Screen Reader |
no |
| VM |
0% |
A/B Experiments
vsliv368cf:30146710
binariesv615:30325510
nativeloc1:31344060
dwcopilot:31170013
dwoutputs:31242946
copilot_t_ci:31333650
e5gg6876:31282496
pythonrdcb7:31342333
6518g693:31463988
aj953862:31281341
63221493:31336333
envsactivate1:31538736
editstats-enabled:31346257
cloudbuttont:31379625
3efgi100_wstrepl:31403338
56b7f661:31457055
ec5jj548:31422691
cp_cls_t_966_ss:31526232
4je02754:31466945
c3h7c220:31478652
cp_cls_c_1081:31454833
conptydll_true:31498968
e9c30283:31461165
test_treatment2:31471001
46204921:31447328
idci7584:31464702
e3e4d672:31494082
ei9d7968:31496641
chat:31457767
7e187181:31503455
ghj88844:31499326
ddid_t:31478206
hmra_i5g22:31518061
7df3h592:31512476
cp_cls_t_1082:31535311
logging_enabled_new:31498466
j0d79568:31499440
jb_cp_cls_t_632:31543129
b1ei0813:31506238
56dj4588:31512888
32d76977:31512328
ha629193:31508444
cdk-lw-on:31524445
f9bf7985:31543584
a1ije391_t:31540920
hgf2d445:31529595
41836166:31537719
jbcp_cls_pctr_t:31531130
61138546:31518536
cp_intellij_t_nes:31548657
d7b18187:31526828
h561g132:31533256
sessions_5:31532894
ihg5j128:31534457
jh7i3328:31546038
9gg7f176:31542112
nes-nc-lc-nf:31546584
Type: Bug
Behaviour
Cannot switch Python interpreters via the status bar or command
Python: Select Interpreter; after selecting a different interpreter, the extension immediately switches back to the default interpreter.Steps to reproduce:
Diagnostic data
launch.jsonconfigurationOutput for
Pythonin theOutputpanel (View→Output, change the drop-down the upper-right of theOutputpanel toPython)Output for
Python Debuggerin theOutputpanel (View→Output, change the drop-down the upper-right of theOutputpanel toPython Debugger)Extension version: 2026.5.2026070801
VS Code version: Code 1.128.0 (fc3def6774c76082adf699d366f31a557ce5573f, 2026-07-07T15:14:24-07:00)
OS version: Windows_NT x64 10.0.26200
Modes:
System Info
GPU0: VENDOR= 0x10de, DEVICE=0x28e0 [NVIDIA GeForce RTX 4060 Laptop GPU], DRIVER_VENDOR=NVIDIA, DRIVER_VERSION=32.0.15.9621 ACTIVE
GPU1: VENDOR= 0x8086, DEVICE=0xa788 [Intel(R) UHD Graphics], DRIVER_VERSION=32.0.101.6790
GPU2: VENDOR= 0x8086, DEVICE=0xa788 [Intel(R) UHD Graphics], DRIVER_VERSION=32.0.101.6790
GPU3: VENDOR= 0x1414, DEVICE=0x008c [Microsoft Basic Render Driver], DRIVER_VERSION=10.0.26100.8521
Machine model name:
Machine model version:
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
trees_in_viz: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgpu: enabled
webnn: disabled_off
A/B Experiments