pyenv local is overrited by pyenv global in vscode's terminal
nullity

nullity @nullity

Joined:
Jul 18, 2021

pyenv local is overrited by pyenv global in vscode's terminal

Publish Date: May 10 '24
0 0

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

  1. In vscode's settings, search for "python environment"
  2. Find "Python > Terminal: Activate Environment"

Image description

  1. uncheck the box.

  2. restart vscode.

  3. It may show a warning in the vscode's terminal, follow that.

Comments 0 total

    Add comment