当我使用conda activate XXX 的时候总是报如下错误:

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'.

解决方法一:

网上的解决方案大部分都是下面这样:

source activate
conda deactivate

解决方法二:

使用命令:source activate XXX

也就是将conda换成source就可以了!

解决conda activate报错IMPORTANT: You may need to close and restart your shell after running ‘conda init‘_呆萌的代Ma的博客-CSDN博客

conda 新版本问题 - 知乎

Logo

为开发者提供学习成长、分享交流、生态实践、资源工具等服务,帮助开发者快速成长。

更多推荐