본문 바로가기

포스트잇

[Linux] anaconda 리눅스 커널에서 설치 (wget 사용)

반응형

개발환경

OS : Windows10 WSL2 (Ubuntu 20.04 LTS)

1. 개요

리눅스 커널에서 wget을 이용하여 anaconda 설치하기

anaconda를 이용한 가상환경설정에 더 익숙하여 다음 내용을 정리하게 됐습니다.

2. 필요 패키지 및 명령어

sudo apt-get update
[sudo] password for ~~~:
Get:1 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
Hit:2 http://archive.ubuntu.com/ubuntu focal InRelease
Get:3 http://archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
Get:4 http://archive.ubuntu.com/ubuntu focal-backports InRelease [108 kB]
Get:5 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [1811 kB]
Get:6 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages [924 kB]
Fetched 3071 kB in 3s (886 kB/s)

이후 opt directory로 이동 후 wget 명령어 또는 bash curl을 사용하여 아카이브에 있는 파일을 다운로드 받습니다.

cd /opt
wget https://repo.anaconda.com/archive/Anaconda3-2022.05-Linux-x86_64.sh

파일을 다운받은 후 bash 명령어를 통해 다운로드를 진행합니다.

 bash Anaconda3-2022.05-Linux-x86_64.sh

또는

sudo apt-get install curl
bash <(curl -s https://repo.anaconda.com/archive/Anaconda3-2022.05-Linux-x86_64.sh)

bash curl을 이용할 경우 sh파일을 내려받지 않고 아나콘다 설치를 진행할 수 있습니다.

 

https://repo.anaconda.com/archive/

 

Index of /

 

repo.anaconda.com

 

그러면 다음과 같이 출력되는데 엔터와 yes를 입력하여 진행합니다.

Welcome to Anaconda3 2022.05

In order to continue the installation process, please review the license
agreement.
Please, press ENTER to continue
>>>
Do you accept the license terms? [yes|no]
[no] >>> yes

이후 설정법은 다음 사이트 내용을 참고하였습니다.

https://phoenixnap.com/kb/how-to-install-anaconda-ubuntu-18-04-or-20-04

 

How to Install Anaconda on Ubuntu 18.04 or 20.04 {Tutorial}

This simple tutorial shows the steps to downloading and install Anaconda Python Distribution on Ubuntu 18.04 or 20.04. Set up this powerful package manager!

phoenixnap.com

 

반응형