728x90

anaconda 공홈에서 linux에 cpu에 맞게 다운을 할 수 있는데 링크 우클릭하면 주소가 나옴. 거기에 wget 붙여서 하면됨. 나는 오류 나서 sudo를 꼭 붙임

sudo wget https://repo.anaconda.com/archive/Anaconda3-2023.09-0-Linux-x86_64.sh

다운이 완료되면

sh *.sh
#혹은
sh Anaconda3-2023.09-0-Linux-x86_64.sh

파일 경로는 /user/[사용자명]에 하는걸 추천 찾기 편함

환경변수 설정

.profile 파일에 환경변수 추가

vim ~/.profile
export PATH=/home/[사용자명]/anaconda3/bin:$PATH

.bashrc 파일에 환경변수 추가

vim ~/.bashrc
export PATH=/home/[사용자명]/anaconda3/bin:$PATH

.zshrc 파일에 환경변수 추가

export PATH=~/home/사용자명/anaconda3/bin:$PATH

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

conda 설치 확인

conda --version

+ Recent posts