当我使用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

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐