conda acitvate激活失效: Your shell has not been properly configured to use ‘conda activate‘.

文章目录

  • 问题
  • 原因
  • 解决
  • 参考

问题

在mac下的anaconda中创建了一个虚拟环境,想用 conda activate xxx 去激活,但是提示:

ommandNotFoundError: 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.

IMPORTANT: You may need to close and restart your shell after running 'conda init'.

原因

原有的环境要退出,再重新激活

解决

重新进入旧环境:source activate
退出旧环境:conda deactivate
激活新环境:conda activate 新环境

参考

https://blog.csdn.net/qq_33825817/article/details/88959785

你可能感兴趣的:(问题)