问题:我不确定每次在VSCode中打开终端时如何将其从终端中删除。我最初试图在VSCode中选择conda python解释器,并认为这是问题的根源。我很高兴删除解释器,因为我意识到实际上不需要使用它,并且想将设置恢复为正常。抱歉,问题缺乏明确性,其中大部分困扰了我。
VS-Code终端显示
CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'.
To initialize your shell, run
$ conda init <SHELL_NAME>
Currently supported shells are:
- bash
- fish
- tcsh
- xonsh
- zsh
- powershell
See 'conda init --help' for more information and options.
IMPORTANT: You may need to close and restart your shell after running 'conda init'.
终端显示:这是我在Mac上正常打开终端后短暂停留后收到的消息。
-bash: conda: command not found
答案 0 :(得分:0)
您似乎没有设置conda环境。 尝试:
conda create -n --name NAMEOFYOURENV python=3.8.2(OR OTHER VERSION YOU PREFER)
您应该能够从VSCODE中选择创建的所有EVN。列出您的conda 环境:
conda env list