The vscode integrated terminal python environment is inconsistent with the bottom bar #25327
Replies: 2 comments
-
|
HI - I recently get the same error. I use UV to do version management. I prev use 3.8, but it prompt that min debugger is 3.9, so I change .python-version to 3.9. however, after uv sync, the bottom bar still shows 3.8, but "select interpreter" correctly shows 3.9. but after click the 3.9 venv it still shows 3.8. I tried remove venv, reload window, and it don't work. Finally I find that ms-python plugin has a python version cache. delete that fixed it. (below scripts are generated by AI) for a powershell function that can be saved into $Profile: On Linux for fish: then use |
Beta Was this translation helpful? Give feedback.
-
|
Hi- this seems similar to command we have |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
A few days ago, I reinstalled the win10 system, re-downloaded vscode and miniconda3, when I selected the virtual environment in the bottom bar
to run the python fileas usual, the terminal running the program did not run in the virtual environment I chose, on the contrary, in the terminal, the program first ran with my locally installed python interpreter, and then the following two lines of commands to activate the virtual python environment I selected automatically appeared in the terminal.A cmd window will also flash by during operation.
I tried changing the integrated terminal to cmd, powershell didn't solve my problem.Below is a demonstration video.
vscodeerror.mp4
The version information for the computer system and software is as follows:
Windows10:
miniconda3:
vscode:
Beta Was this translation helpful? Give feedback.
All reactions