환경구축

conda 설치

wandering developer 2023. 2. 11. 22:27

이 쉬운것을 적어야하나 하는 생각도 들지만

환경 구축이라는 category에 내가 뭘 설치했는지 적어 놨으면 해서 적는다.

https://conda.io/projects/conda/en/latest/user-guide/install/linux.html

 

Installing on Linux — conda 23.1.0.post32+239ce89fb documentation

© Copyright 2017, Anaconda, Inc. Revision 239ce89f.

conda.io

여기 사이트가서 파일을 다운 받은 후

bash Anaconda-latest-Linux-x86_64.sh

해당 명령어를 치면 설치가 될것이다.

설치가 제대로 되었다면 cat ~/.bashrc치면 아래와 같은 코드를 발견 할 수 있을것이다.

vim ~/.bashrc

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

 

여기서 주의 할점은 집에서는 상관 없지만

 

300명 이상 회사에서는 conda 가 불법이기 때문에 miniconda를 설치한다.

miniconda 도 불법인 것 같기는 한데......우선 conda는 확실히 불법이고

miniconda 는 아니다라는 설도 있어서 회사에서는 miniconda 를 설치해서 쓴다.

반응형