错误提示:CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'.

解决方法参考了网页:https://blog.csdn.net/qq_42902997/article/details/103946305

##conda activate gatk3.8
conda activate *****

均会提示下面的错误信息:
CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'.
To initialize your shell, run

    $ conda init 

Currently supported shells are:
  - bash
  - fish
  - tcsh
  - xonsh
  - zsh
  - powershell

See 'conda init --help' for more information and options.

具体原因不清楚。
解决方式如下:

#在激活特定环境之前,先运行下面一条命令
source ~/anaconda3/etc/profile.d/conda.sh
之后再运行下面的命令就可以解决了。
conda activate gatk3.8
conda deactivate

你可能感兴趣的:(错误提示:CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'.)