Problem
In termianl (outside vscode), pyenv local version overwrites pyenv global version, which is correct.
In vscode's terminal, the pyenv global version overwrites the pyenv local version, which is wrong.
Solution
- In vscode's settings, search for "python environment"
- Find "Python > Terminal: Activate Environment"
uncheck the box.
restart vscode.
It may show a warning in the vscode's terminal, follow that.
Top comments (0)