Conda_Miniconda 환경 변수 설정

IT Newbie·2022년 4월 2일
0
echo 'export PATH="/opt/homebrew/Caskroom/miniconda/base/bin:$PATH"' >> ~/.zshrc

~/.zshrc 파일에 miniconda 환경 변수 설정

Please run the following to setup your shell:

conda init "$(basename "${SHELL}")"

or

conda init <SHELL_NAME>

~/.zshrc 파일에 아래 내용의 환경 변수 자동 생성

# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/opt/homebrew/Caskroom/miniconda/base/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
    eval "$__conda_setup"
else
    if [ -f "/opt/homebrew/Caskroom/miniconda/base/etc/profile.d/conda.sh" ]; then
        . "/opt/homebrew/Caskroom/miniconda/base/etc/profile.d/conda.sh"
    else
        export PATH="/opt/homebrew/Caskroom/miniconda/base/bin:$PATH"
    fi
fi
unset __conda_setup
# <<< conda initialize <<<

Anaconda Version 확인

conda --version
  • -V : --version : Show the conda version number and exit.

Anaconda update

conda update conda
conda update anaconda={특정버전}

0개의 댓글