正确解决CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'.

最近Ubuntu下面使用conda activate name激活虚拟命令的时候,突然报错,信息如下:

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

看到这个处于一脸懵逼的状态,几经探索,解决方法如下:

1  首先终端输入 source activate

2 然后终端输入 source deactivate

3 输入你要激活的虚拟环境指令 conda activate your_virtual_name

问题解决!!!

扫描二维码关注公众号,回复: 10713438 查看本文章
发布了96 篇原创文章 · 获赞 96 · 访问量 22万+

猜你喜欢

转载自blog.csdn.net/qq_33221533/article/details/100150534