Conda_Anaconda 환경 변수 설정

Anaconda repo site

Installers & Packages
https://repo.anaconda.com

Anaconda Environment

환경 변수 설정

echo 'export PATH="/opt/homebrew/anaconda3/bin:$PATH"' >> ~/.zshrc

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

conda init
  • .bash_profile 환경변수 자동 행성
    -> .zshrc 로 복사 붙혀넣기
# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/opt/homebrew/Caskroom/anaconda3/base/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
    eval "$__conda_setup"
else
    if [ -f "/opt/homebrew/Caskroom/anaconda3/base/etc/profile.d/conda.sh" ]; then
        . "/opt/homebrew/Caskroom/anaconda3/base/etc/profile.d/conda.sh"
    else
        export PATH="/opt/homebrew/Caskroom/anaconda3/base/bin:$PATH"
    fi
fi
unset __conda_setup
# <<< conda initialize <<<

Show the conda version number and exit : Anaconda Version 확인

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

Anaconda update

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

좋은 웹페이지 즐겨찾기