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
{{ message }}
Repository navigation
Overwriting python.defaultInterpreterPath on first startup #1082
My setup is the following, prepared in CI and downloaded to my local machine :
Portable VSCode (1.107.1)
python-build-standalone (basically a portable python maintained by Astral.sh)
settings.json that has a full path to the python.exe interpreter set before first run of VSCode (via python.defaultInterpreterPath)
VSCode extensions:
Microsoft Python (v2025.20.1)
Microsoft Python Environments (v1.14.0)
...
What happens is that this extension or pet.exe is overwriting python.defaultInterpreterPath with a system installation of python. This happens quickly during the first startup of VSCode.
I have verified that the above python.exe is working correctly and is accessible via the path set in settings.json. I am able to work around by setting "python.useEnvironmentsExtension": false. So far I have only tested on windows.
Activity
eleanorjboyd commentedon Jan 14, 2026
able to repro but in a very weird set of steps...
The video caught it but here is it written:
override-defaultInterpreter.mov
jdegenstein commentedon Jan 27, 2026
Thank you!
remove method to update defaultInterpreterPath on env ext environmen…