Skip to content

python venv not activating on run button #714

@ChenitoAf

Description

@ChenitoAf

Type: Bug

Dear all,

I have been using python virtual environment in windows for the last 3 years. But when I was back from holiday and noticed that visual studio code got updated as well.
Then somehow the python virutal environment doesn't work any more. The reported error message is "bash: python exe command not found".

But actually the virtual environment is there.

So what I tried is the following:

  1. deactivated the virtual environment and re-activated it again. It didn't help.
  2. created a new virtual environment and in python interpreter I selected the newly created one. But same result.
  3. But if I chose my global python, then it worked.
  4. I decided to upgrade python from 3.10 to 3.13 and created a new virtual environment. But all had the same result.

Any idea what could be the cause?

Great thanks in advance!

VS Code version: Code 1.102.3 (488a1f239235055e34e673291fb8d8c810886f81, 2025-07-29T03:00:23.339Z)
OS version: Windows_NT x64 10.0.19045
Modes:

System Info
Item Value
CPUs 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz (8 x 2803)
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) 15.71GB (2.07GB free)
Process Argv --crash-reporter-id c9a6bac7-e141-4702-8a01-1755dda772ac
Screen Reader no
VM 0%
Extensions (30)
Extension Author (truncated) Version
amazon-q-vscode ama 1.85.0
markdown-mermaid bie 1.28.0
vscode-pandoc Chr 0.6.2
docker doc 0.13.0
copilot Git 1.350.0
copilot-chat Git 0.29.1
markdown-image han 1.1.49
markdown-code-to-png Lui 1.2.2
csvtomarkdown mar 0.0.1
rainbow-csv mec 3.20.0
vscode-containers ms- 2.1.0
vscode-docker ms- 2.0.0
vscode-language-pack-de MS- 1.102.2025071609
vscode-language-pack-zh-hans MS- 1.102.2025071609
debugpy ms- 2025.10.0
isort ms- 2025.0.0
python ms- 2025.10.1
vscode-pylance ms- 2025.7.1
vscode-python-envs ms- 1.2.0
jupyter ms- 2025.6.0
jupyter-keymap ms- 1.1.2
jupyter-renderers ms- 1.3.0
vscode-jupyter-cell-tags ms- 0.1.9
vscode-jupyter-slideshow ms- 0.1.6
csv-to-md-table pho 0.3.1
vscode-st Ser 1.12.36
markdowntable Tak 0.13.0
python-extended-snippets tus 0.0.1
markdown-pdf yza 1.5.0
markdown-all-in-one yzh 3.6.3
A/B Experiments
vsliv368cf:30146710
vswsl492:30256859
pythonvspyt551:31249599
binariesv615:30325510
2e7ec940:31000449
nativeloc1:31344060
dwcopilot:31170013
6074i472:31201624
dwoutputs:31242946
hdaa2157:31222309
copilot_t_ci:31333650
e5gg6876:31282496
pythoneinst12:31285622
c7cif404:31314491
996jf627:31283433
pythonrdcb7:31342333
usemplatestapi:31297334
0aa6g176:31307128
747dc170:31275177
aj953862:31281341
generatesymbolt:31295002
convertfstringf:31295003
9d2cg352:31346308
convertlamdat:31350063
usemarketplace:31343026
nesew2to5:31336538
agentclaude:31350858
nes-diff-11:31337487
replacestringexc:31350595
nes-set-on:31351930
onetestforazureexp:31335613
6abeh943:31336334
envsactivate1:31353494
yijiwantestdri0626-c:31336931
0927b901:31350571
4gdec884:31348710
8gib2676:31356126
0cj2b977:31352657

Metadata

Metadata

Assignees

Labels

info-neededIssue requires more information from poster

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions