2

Recently when I'm using vscode, everytime I launches the built-in terminal, it automatically uses "source activate base" to launch a anaconda python virtual environment. You can see the screenshot

here.

I don't think I changed anything but it just came up randomly. Can someone help me out?

Nick
  • 138,499
  • 22
  • 57
  • 95

1 Answers1

6

To prevent automatic activation of a selected environment, add

"python.terminal.activateEnvironment": false

to your settings.json file (it can be placed anywhere as a sibling to the existing settings). However, debugging or running Python code without any activated environment won't work.

Peter
  • 10,959
  • 2
  • 30
  • 47