报错解决:CommandNotFoundError: Your shell has not been properly configured to use ‘conda activate‘.

问题描述

在screen窗口内,执行conda activate xx,预期进入conda环境,报错:

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

解决方法

在命令行输入:

bash

再次执行conda activate,问题解决。

猜你喜欢

转载自blog.csdn.net/qq_41112170/article/details/134934721