Type: Bug
Behaviour
In "Python: Select Interpreter" I chose python3.11.
However, when the Python code is run interactively it still uses python3.12 that is considered to be a "Recommended" version.
Steps to reproduce:
- Have multiple Python versions installed.
- In "Python: Select Interpreter" choose the Python version different/earlier than than recommended version.
- Observe how it still uses the recommended version to run Python code interactively.
Diagnostic data
Details
This version is always used, regardless of the user's choice:
3.12.11 (main, Jun 14 2025, 01:06:11) [Clang 18.1.6 (https://github.com/llvm/llvm-project.git llvmorg-18.1.6-0-g1118c
Extension version: 2025.4.0
VS Code version: Code - OSS 1.101.2 (2901c5ac6db8a986a5666c3af51ff804d05af0d4, 2025-07-02T06:37:13.501Z)
OS version: FreeBSD x64 14.3-STABLE
Modes:
- Python version (& distribution if applicable, e.g. Anaconda): 3.11.13
- Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): Global
- Value of the
python.languageServer setting: Default
User Settings
Installed Extensions
| Extension Name |
Extension Id |
Version |
| debugpy |
ms- |
2025.6.0 |
| js-debug |
ms- |
1.100.1 |
| js-debug-companion |
ms- |
1.1.3 |
| python |
ms- |
2025.4.0 |
| vscode-js-profile-table |
ms- |
1.0.10 |
System Info
| Item |
Value |
| CPUs |
Intel(R) Core(TM) i7 CPU 930 @ 2.80GHz (8 x 3439) |
| 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: disabled_software vulkan: disabled_off webgl: enabled webgl2: enabled webgpu: disabled_off webnn: disabled_off |
| Load (avg) |
6, 4, 3 |
| Memory (System) |
23.95GB (0.52GB free) |
| Process Argv |
|
| Screen Reader |
no |
| VM |
0% |
| DESKTOP_SESSION |
xfce |
| XDG_CURRENT_DESKTOP |
XFCE |
| XDG_SESSION_DESKTOP |
undefined |
| XDG_SESSION_TYPE |
undefined |
Type: Bug
Behaviour
In "Python: Select Interpreter" I chose python3.11.
However, when the Python code is run interactively it still uses python3.12 that is considered to be a "Recommended" version.
Steps to reproduce:
Diagnostic data
Details
This version is always used, regardless of the user's choice: 3.12.11 (main, Jun 14 2025, 01:06:11) [Clang 18.1.6 (https://github.com/llvm/llvm-project.git llvmorg-18.1.6-0-g1118cExtension version: 2025.4.0
VS Code version: Code - OSS 1.101.2 (2901c5ac6db8a986a5666c3af51ff804d05af0d4, 2025-07-02T06:37:13.501Z)
OS version: FreeBSD x64 14.3-STABLE
Modes:
python.languageServersetting: DefaultUser Settings
Installed Extensions
System Info
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: disabled_software
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
webnn: disabled_off