【解决】conda activate 报错“CommandNotFoundError: Your shell has not been properly configured “

问题

conda activate [env] 无法运行,并要求运行 conda init

【解决】conda activate 报错“CommandNotFoundError: Your shell has not been properly configured “_第1张图片

CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'.
To initialize your shell, run

    $ conda init

Currently supported shells are:
  - bash
  - fish
  - tcsh
  - xonsh
  - zsh
  - powershell

See 'conda init --help' for more information and options.
 

conda init 运行以后仍然无法进入虚拟环境 

【解决】conda activate 报错“CommandNotFoundError: Your shell has not been properly configured “_第2张图片

解决方案

  1.  conda init --all --dry-run --verbose
  2.  exec bash
  3.  conda activate [env]

【解决】conda activate 报错“CommandNotFoundError: Your shell has not been properly configured “_第3张图片

你可能感兴趣的:(报错解决,conda,python,ubuntu,linux)