1

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
  • 123,192
  • 20
  • 49
  • 81

1 Answers1

2

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
  • 3,992
  • 2
  • 18
  • 25