ubuntuでanacondaを使用したいと思っているのですが、
「conda activate base」のコマンドを使用した際、以下のメッセージが表示され、activateされません
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. IMPORTANT: You may need to close and restart your shell after running 'conda init'.
$ conda init bash は実行してみましたか?
実行してみたところ以下の情報が返ってきました(ディレクトリ名は少し編集してあります)
WARNING: The conda.compat module is deprecated and will be removed in a future release.
no change /home/user/folder1/anaconda3/condabin/conda
no change /home/user/folder1/anaconda3/bin/conda
no change /home/user/folder1/anaconda3/bin/conda-env
no change /home/user/folder1/anaconda3/bin/activate
no change /home/user/folder1/anaconda3/bin/deactivate
no change /home/user/folder1/anaconda3/etc/profile.d/conda.sh
no change /home/user/folder1/anaconda3/etc/fish/conf.d/conda.fish
no change /home/user/folder1/anaconda3/shell/condabin/Conda.psm1
no change /home/user/folder1/anaconda3/shell/condabin/conda-hook.ps1
no change /home/user/folder1/anaconda3/lib/python3.7/site-packages/xonsh/conda.xsh
no change /home/user/folder1/anaconda3/etc/profile.d/conda.csh
no change /home/user/.bashrc
No action taken.
その後もactivateに失敗しますか?
同様のメッセージのままです
Ubuntuって純粋なUbuntuでしょうか?WSLだったりしませんか?その他にも詳細な環境、バージョン情報等記載していただけると助かります。
> You may need to close and restart your shell after running 'conda init'.
を無視してませんか?
あなたの回答
tips
プレビュー