conda-[报错解决]-CommandNotFoundError: Your shell has not been properly configured to use conda activate
conda-[报错解决]-CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'
1.问题产生
刚拿到一台安装好conda 的机子,修改了.condarc里面的源之后,终于顺利快速的创建好了一个环境,但是执行conda activate my_env_01的时候出现了如下错误:
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:
See ‘conda init –help’ for more information and options.
IMPORTANT: You may need to close and restart your shell after running ‘conda init’.
2. 解决方法
依次执行下面这两条命令,然后就可以激活你的环境了。
source activate
source deactivate
conda activate my_env_01
来源:沧海一粟日尽其用