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

Problem Description

In the screen window, execute conda activate xx. Expect to enter the conda environment and report an error:

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

Solution

Enter at the command line:

bash

Execute conda activate again and the problem is solved.

Guess you like

Origin blog.csdn.net/qq_41112170/article/details/134934721