VSCode conda activate base giving CommandNotFoundError

后端 未结 4 1501
庸人自扰
庸人自扰 2021-02-09 01:17

I have Anaconda and Visual Studio Code installed on my computer. My default terminal for VS Code is Git Bash. When I open a new terminal in VSCode, it immediately runs the follo

4条回答
  •  温柔的废话
    2021-02-09 01:59

    In VS code settings, search for "terminal.integrated.shellArgs.windows", then click "Edit in settings.json". For me, this opened "%APPDATA%\Code\User\settings.json". I set "terminal.integrated.shellArgs.windows": "-i -l" and this fixed it for me. My file:

    {
        "terminal.integrated.shell.windows": "C:\\Program Files\\Git\\bin\\bash.exe",
        "terminal.integrated.shellArgs.windows": "-i -l"
    }
    

提交回复
热议问题