본문 바로가기

Programming/Linux

[Linux/Ubuntu 20.04] 우분투 아나콘다 설치 및 삭제 (anaconda Install/ Uninstall)

anaconda 설치 (Install)


아래 명령 처럼 wget 으로 설치 파일을 불러와서 설치하는 방법이 있고, 직접 홈페이지에 가서 설치 파일을 다운로드 받는 방법이 있습니다.

두 가지 중 편한 방법으로 원하시는 버전에 맞는 sh 파일을 다운 받습니다.

저는 wget 으로 Anaconda3-2019.10-Linux-x86_64.sh 파일을 다운 받아서 진행하였습니다.

https://www.anaconda.com/products/individual

 

Anaconda | Individual Edition

Anaconda's open-source Individual Edition is the easiest way to perform Python/R data science and machine learning on a single machine.

www.anaconda.com

# 다운로드 파일 저장
$ wget https://repo.anaconda.com/archive/Anaconda3-2019.10-Linux-x86_64.sh
# conda install
$ bash Anaconda3-2019.10-Linux-x86_64.sh

$ source ~/.bashrc
$ conda -V
conda 4.7.12

# 다운로드 파일 삭제
$ rm Anaconda3*
 $ export PATH={anaconda3 폴더 저장 위치}/anaconda3/bin:$PATH
 $ conda -V
 conda 4.7.12

 

ananconda 삭제 (Uninstall)


$ conda install anaconda-clean
$ anaconda-clean --yes

$ rm -rf ~/anaconda3 
$ rm -rf ~/.anaconda_backup 

 # anaconda3 PATH 관련 명령
$ sudo vim /etc/bash.bashrc
반응형