Ubuntu에 anaconda 설치하기

Tube·2021년 4월 25일
0

anaconda 다운로드 전 의존성 라이브러리 설치

$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo apt-get install libgl1-mesa-glx libegl1-mesa libxrandr2 libxrandr2 libxss1 libxcursor1 libxcomposite1 libasound2 libxi6 libxtst6

anaconda 다운로드

https://www.anaconda.com/products/individual#download-section 해당 사이트에서 아나콘다 버전 확인 후 다운로드

$ wget https://repo.anaconda.com/archive/Anaconda3-2020.11-Linux-x86_64.sh

anaconda 설치

$ zsh Anaconda3-2020.11-Linux-x86_64.sh

환경변수 설정

쉘 확인

$ echo $SHELL
/usr/bin/zsh

환경변수 추가

~/.zshrc~/.bashrc파일에 해당 내용추가

export PATH=$HOME/anaconda3/bin:$PATH

환경변수 적용

$ source ~/.zshrc
$ source ~/.bashrc

conda init

$ conda init zsh

현재 실행 중인 터미널을 재실행 시켜야 한다.

설치 완료 확인

$ conda --version
conda 4.9.2

0개의 댓글