# ./conda activate py38
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 @R_247_4045@ion and options.
IMPORTANT: You may need to close and restart your shell after running 'conda init'.
# conda init
no change /home/software/anaconda3/condabin/conda
no change /home/software/anaconda3/bin/conda
no change /home/software/anaconda3/bin/conda-env
no change /home/software/anaconda3/bin/activate
no change /home/software/anaconda3/bin/deactivate
no change /home/software/anaconda3/etc/profile.d/conda.sh
no change /home/software/anaconda3/etc/fish/conf.d/conda.fish
no change /home/software/anaconda3/shell/condabin/Conda.psm1
no change /home/software/anaconda3/shell/condabin/conda-hook.ps1
no change /home/software/anaconda3/lib/python3.8/site-packages/xontrib/conda.xsh
no change /home/software/anaconda3/etc/profile.d/conda.csh
no change /root/.bashrc
No action taken.
解决办法
# 激活环境
source activate
# 退出环境
source deactivate
conda activate py38
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。