When I executed conda activate
, the following error occurred, so make a note of what to do at that time.
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.
IMPORRANT: You may need to close and restart your shell after running 'conda init'.
Execute conda init
according to the error message and restart the terminal, but an error occurs again.
I ran conda init zsh
(because my shell environment is zsh
) and restarted the terminal and it worked fine.
Select the zsh
part from the aboveCurrently supported shells are:
according to each individual's environment, and rewrite it.
Recommended Posts