Fixing Pyenv Version Overwrites In VSCode
pyenv global version overwrites local version in vscode's terminal. To fix, uncheck "Terminal: Activate Environment" in vscode settings and restart.
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.