conda trouble shooting
1. conda 실행 error
- error
root@aidw-008:/home/aidw/work_han/cate# conda activate base
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'.
root@aidw-008:/home/aidw/work_han/cate# conda init bash
no change /home/aidw/opt/anaconda3/condabin/conda
no change /home/aidw/opt/anaconda3/bin/conda
no change /home/aidw/opt/anaconda3/bin/conda-env
no change /home/aidw/opt/anaconda3/bin/activate
no change /home/aidw/opt/anaconda3/bin/deactivate
no change /home/aidw/opt/anaconda3/etc/profile.d/conda.sh
no change /home/aidw/opt/anaconda3/etc/fish/conf.d/conda.fish
no change /home/aidw/opt/anaconda3/shell/condabin/Conda.psm1
no change /home/aidw/opt/anaconda3/shell/condabin/conda-hook.ps1
no change /home/aidw/opt/anaconda3/lib/python3.7/site-packages/xontrib/conda.xsh
no change /home/aidw/opt/anaconda3/etc/profile.d/conda.csh
modified /root/.bashrc
==> For changes to take effect, close and re-open your current shell. <==
- 해결
root@aidw-008:/home/aidw/work_han/cate# eval "$(command conda 'shell.bash' 'hook' 2> /dev/null)"
(base) root@aidw-008:/home/aidw/work_han/cate# conda activate capi
(capi) root@aidw-008:/home/aidw/work_han/cate#
refer
https://stackoverflow.com/questions/55507519/python-activate-conda-env-through-shell-script
Author And Source
이 문제에 관하여(conda trouble shooting), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://velog.io/@hanovator/cona-trouble-shooting저자 귀속: 원작자 정보가 원작자 URL에 포함되어 있으며 저작권은 원작자 소유입니다.
우수한 개발자 콘텐츠 발견에 전념 (Collection and Share based on the CC Protocol.)