LoginSignup
1
2

More than 3 years have passed since last update.

CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'が出たときの解決方法

Posted at

conda activate を実行したところ以下のエラーが発生したので,そのときの対処をメモ.

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

エラーメッセージに従って conda init を実行し,ターミナルを再起動するも再びエラー.

conda init zsh(私のシェルの環境がzshのため) を実行し,ターミナルを再起動すると正常に動作することができました.

zshの部分を上記のCurrently supported shells are: から各個人の環境に合わせて選択し,書き換えればうまくいくと思います.

1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2