bash쉘에서만 호환되는 아나콘다를 iterm이 기반한 z쉘에서도 사용하는 방법
vi ~/.zshrc
export PATH=$HOME/bin:/usr/local/bin:/anaconda3:/anaconda3/bin:$PATH
export ZSH=/Users/fabxoe/.oh-my-zsh
환경변수 설정을 해주자.
# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/Users/fabxoe/opt/anaconda3/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
eval "$__conda_setup"
else
if [ -f "/Users/fabxoe/opt/anaconda3/etc/profile.d/conda.sh" ]; then
. "/Users/fabxoe/opt/anaconda3/etc/profile.d/conda.sh"
else
export PATH="/Users/fabxoe/opt/anaconda3/bin:$PATH"
fi
fi
unset __conda_setup
# <<< conda initialize <<<
bash쉘을 통해서 설치했을 경우에는 이 내용도 자동으로 작성되어 있지 않으므로 꼭 붙여 넣어주자
(애초에 아나콘다를 zsh상에서 설치하면 자동으로 작성 되어있을 것이다.)
참고:
https://github.com/honux77/practice/wiki/conda--%EA%B0%84%EB%8B%A8-%EC%82%AC%EC%9A%A9%EB%B2%95
'Mac' 카테고리의 다른 글
zsh 세팅 (0) | 2020.07.05 |
---|---|
맥에서 su - 사용하려면 먼저 해야할 것 dsenableroot (0) | 2020.02.18 |
댓글