본문 바로가기
C.W.K.
Stream
Lesson 02 of 05 · published

Anaconda 대신 Miniconda 설치

~10 min · conda, installation, miniconda

Level 0입문자
0 XP0/55 lessons0/16 achievements
0/80 XP to next level80 XP to go0% complete

conda를 제공하는 대표적인 두 배포판은 AnacondaMiniconda야. Anaconda는 수백 개의 데이터 과학 패키지를 미리 담아 약 3GB이고, Miniconda는 conda와 Python만 담아 약 100MB야. 대부분의 사용자에게는 Miniconda가 맞아. 필요한 패키지만 나중에 추가하면 되므로 거의 쓰지 않을 3GB를 미리 받을 이유가 없어.

Apple Silicon Mac에서는 arm64 설치 파일을 받아. Intel용도 Rosetta를 통해 실행할 수 있지만 성능이 떨어지고 네이티브 binary 조합이 맞지 않을 수 있어.

설치가 끝나면 터미널을 다시 열거나 source ~/.zshrc를 실행해. 설치 도구가 셸 초기화 파일에 conda init 블록을 추가해 conda activate를 쓸 수 있게 해. conda --version으로 확인하면 돼.

설치 직후에는 conda-forge를 기본 channel로 설정해. Anaconda Inc가 운영하는 defaults는 패키지가 더 적고 상업적 사용 조건도 더 엄격해. 커뮤니티 channel인 conda-forge에는 30,000개가 넘는 패키지가 있으며 별도의 라이선스 조건도 없어.

Code

Apple Silicon에 Miniconda 설치·bash
# arm64 installer 다운
curl -O https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-arm64.sh

# installer 실행 (인터랙티브 — 디폴트 수락)
bash Miniconda3-latest-MacOSX-arm64.sh

# Terminal 재시작 (또는 'source ~/.zshrc'), 검증
conda --version
# conda 24.x.x
기본 channel을 conda-forge로 전환·bash
# conda-forge 를 가장 높은 우선순위 channel 로 설정
conda config --add channels conda-forge
conda config --set channel_priority strict

# 검증
conda config --show channels
# channels:
#   - conda-forge
#   - defaults

External links

Exercise

Miniconda 또는 Miniforge를 설치하고 'conda --version'으로 확인한 뒤 'conda config --show channels'를 실행해. defaults가 conda-forge보다 앞에 있다면 순서를 바로잡아. 나중에 conda-forge에만 있는 전문 과학 패키지를 설치할 때 이 설정이 차이를 만들어.

Progress

Progress is local-only — sign in to sync across devices.
이 페이지에서 버그를 발견하셨거나 피드백이 있으세요?문제 신고

댓글 0

🔔 답글 알림 (로그인 필요)
로그인댓글을 남기려면 로그인해 주세요.

아직 댓글이 없어요. 첫 댓글을 남겨보세요.