mac の conda activate で CommandNotFoundError になったときの対処法
環境
brewでcondaをインストール -> conda create -n でhogeという名前の仮装環境作成
実行コマンド
conda activate hoge
エラー内容
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_profileを読み込んでから、conda activate を実行
source ~/.bash_profile
Linuxではこんなことなかった気がする