VSCode conda activate base giving CommandNotFoundError

后端 未结 4 1434
庸人自扰
庸人自扰 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:51

    I had the same issue. For me, easily resolved by launching VSC from the conda window.

    Specifically, open your cmd prompt (for me, Anaconda Prompt), activate the environment using 'conda activate [envname]'. Then just run the command 'code'. This will launch VS Code with the activated environment and associated variables. From there, the debug works as expected.

提交回复
热议问题