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
I use uv to create my venvs.
I have requires-python = "==3.12.*" in my pyproject.toml.
I can create and activate the environment.
python --version says "Python 3.12.9".
which python says /mypath/.venv/bin/python.
I run vscode using code ., and it activates the .venv, but the version shown is 3.11.9.
I can switch to another python, then select my venv again (which shows 3.12.9 in the list), and again, it says 3.11.9.
I've verified that python.defaultInterpreterPath is set to /mypath/.venv.
If I run python --version in the terminal in vscode, it prints the correct version, 3.12.9.
I can run the following cells in a notebook:
So it appears to be using the correct venv and python version, yet the interface still shows the old version.
With a .py file open, the same behavior is seen when selecting the python version from the footerbar. The version show is Python 3.11.9 ('.venv'), yet if I print(sys.version) from a .py file, the correct 3.12.9 version is printed. Selecting the python intepreter by clicking on the footerbar lists my venv with the correct version 3.12.9, but after selecting it, the footerbar still displays 3.11.9.
VS Code version: Code 1.98.0 (6609ac3, 2025-03-04T21:06:18.612Z)
OS version: Linux x64 6.12.13-200.fc41.x86_64
Modes:
Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.98.2. Please try upgrading to the latest version and checking whether this issue remains.
Type: Bug
I use uv to create my venvs.
I have requires-python = "==3.12.*" in my pyproject.toml.
I can create and activate the environment.
python --version says "Python 3.12.9".
which python says /mypath/.venv/bin/python.
I run vscode using code ., and it activates the .venv, but the version shown is 3.11.9.
I can switch to another python, then select my venv again (which shows 3.12.9 in the list), and again, it says 3.11.9.
I've verified that python.defaultInterpreterPath is set to /mypath/.venv.
If I run python --version in the terminal in vscode, it prints the correct version, 3.12.9.
I can run the following cells in a notebook:
So it appears to be using the correct venv and python version, yet the interface still shows the old version.
With a .py file open, the same behavior is seen when selecting the python version from the footerbar. The version show is Python 3.11.9 ('.venv'), yet if I print(sys.version) from a .py file, the correct 3.12.9 version is printed. Selecting the python intepreter by clicking on the footerbar lists my venv with the correct version 3.12.9, but after selecting it, the footerbar still displays 3.11.9.
VS Code version: Code 1.98.0 (6609ac3, 2025-03-04T21:06:18.612Z)
OS version: Linux x64 6.12.13-200.fc41.x86_64
Modes:
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
Extensions (36)
(2 theme extensions excluded)
A/B Experiments
The text was updated successfully, but these errors were encountered: