Miniforge로 Conda 환경 설정하기

https://github.com/conda-forge/miniforge

1
curl -L -O "https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-$(uname)-$(uname -m).sh"

설치를 시작한다.

1
2
3
4
5
6
7
8
9
10
11
12
$ sh Miniforge3-Linux-x86_64.sh

Welcome to Miniforge3 26.3.2-2

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]
>>> yes

설치 위치를 정한다.

1
2
3
4
5
6
7
8
Miniforge3 will now be installed into this location:
/home/qkboo/miniforge3

- Press ENTER to confirm the location
- Press CTRL-C to abort the installation
- Or specify a different location below

[/home/qkboo/miniforge3] >>>

기본 base 환경 자동 처리

1
2
3
4
5
6
7
8
9
10
11
12
13
installation finished.
Do you wish to update your shell profile to automatically initialize conda?
This will activate conda on startup and change the command prompt when activated.
If you'd prefer that conda's base environment not be activated on startup,
run the following command when conda is activated:

conda config --set auto_activate_base false

Note: You can undo this later by running `conda init --reverse $SHELL`

Proceed with initialization? [yes|no]
[no] >>> yes

초기화를 진행하면 아래 같이 .bashrc 에 추가된다.

conda init 명령을 사용할 수 있다.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
The following has been added in your "/home/qkboo/.bashrc" file

# >>> mamba initialize >>>
# !! Contents within this block are managed by 'mamba shell init' !!
export MAMBA_EXE='/home/qkboo/.local/miniforge3/bin/mamba';
export MAMBA_ROOT_PREFIX='/home/qkboo/.local/miniforge3';
__mamba_setup="$("$MAMBA_EXE" shell hook --shell bash --root-prefix "$MAMBA_ROOT_PREFIX" 2> /dev/null)"
if [ $? -eq 0 ]; then
eval "$__mamba_setup"
else
alias mamba="$MAMBA_EXE" # Fallback on help from mamba activate
fi
unset __mamba_setup
# <<< mamba initialize <<<

이후 (base) 환경을 자동화 하지 않으려면

1
conda config --set auto_activate_base false

Conda Channel 관리

a. conda-forge만 있는지 확인:

conda config –show channels
b. 다른 채널 제거:

conda config –remove channels {채널명}
c. conda-forge 추가:

conda config –add channels conda-forge

Author

Gangtai Goh

Posted on

2025-10-28

Updated on

2026-05-24

Licensed under