【发布时间】:2020-04-19 10:55:48
【问题描述】:
问题:我不确定每次在 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
【问题讨论】:
-
由于 Mac 默认带有 bash shell,您是否尝试过运行“conda init bash”?我不确定,因为我完全不清楚这个问题。但我绝对会建议试一试。告诉我进展如何。
-
嗨@VivekKhimani 感谢您的回复,终端返回“未采取任何行动”
-
您尝试过命令后是否尝试重新启动终端?您发布的终端 sn-p 指示这样做...重新启动后尝试检查 conda 是否正常工作....
标签: python visual-studio-code terminal conda