尽管我有 conda 环境列表,为什么我的 conda activate 不起作用?

Pra*_*tta 1 anaconda conda

我已经在 linux 中使用 conda 创建了自己的环境。当我检查时conda info --envs,它给出了一个环境列表,如

# conda environments:
#
base                  *  /home1/sriparna/anaconda3
copy_Env_deepgo          /home1/sriparna/anaconda3/envs/copy_Env_deepgo
deepgo_2                 /home1/sriparna/anaconda3/envs/deepgo_2
deepgo_3                 /home1/sriparna/anaconda3/envs/deepgo_3
enzy                     /home1/sriparna/anaconda3/envs/enzy
parth                    /home1/sriparna/anaconda3/envs/parth
protein_struc            /home1/sriparna/anaconda3/envs/protein_struc
py2                      /home1/sriparna/anaconda3/envs/py2
Run Code Online (Sandbox Code Playgroud)

但我无法激活特定环境。例如,当我尝试conda activate parth它时显示

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'.
Run Code Online (Sandbox Code Playgroud)

请帮我解决这个问题。

sac*_*odd 5

这对我有用:

source {path_to_anaconda}/anaconda3/etc/profile.d/conda.sh
conda activate parth
Run Code Online (Sandbox Code Playgroud)