맥에서 아나콘다를 삭제 하는 방법이 프로그램 삭제와 수동으로 삭제로 나눠지는 것 같다
conda를 지울껀데 conda를 통해서 anaconda-clean를 설치 후 지우는 건 이상해 보여서
conda를 통해서 확인하고 수동으로 지우는 방법을 택함
그래도 방법을 둘다 남겨둠
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 프로그램으로 삭제 | |
## anaconda-clean 설치 | |
$ conda install anaconda-clean | |
## anaconda-clean 으로 아나콘다 삭제 | |
$ anaconda-clean --yes | |
# 수동으로 삭제 | |
## 아나콘다 설치 경로 확인 | |
$ conda info | |
active environment : base | |
active env location : /opt/anaconda3 | |
shell level : 1 | |
user config file : /Users/user_name/.condarc | |
populated config files : /Users/user_name/.condarc | |
conda version : 24.9.2 | |
conda-build version : 24.5.1 | |
python version : 3.12.4.final.0 | |
solver : libmamba (default) | |
virtual packages : __archspec=1=haswell | |
__conda=24.9.2=0 | |
__osx=10.16=0 | |
__unix=0=0 | |
base environment : /opt/anaconda3 (writable) | |
conda av data dir : /opt/anaconda3/etc/conda | |
conda av metadata url : None | |
channel URLs : https://repo.anaconda.com/pkgs/main/osx-64 | |
https://repo.anaconda.com/pkgs/main/noarch | |
https://repo.anaconda.com/pkgs/r/osx-64 | |
https://repo.anaconda.com/pkgs/r/noarch | |
package cache : /opt/anaconda3/pkgs | |
/Users/user_name/.conda/pkgs | |
envs directories : /opt/anaconda3/envs | |
/Users/user_name/.conda/envs | |
platform : osx-64 | |
user-agent : conda/24.9.2 requests/2.32.2 CPython/3.12.4 Darwin/22.6.0 OSX/10.16 solver/libmamba conda-libmamba-solver/24.1.0 libmambapy/1.5.8 aau/0.4.4 c/. s/. e/. | |
UID:GID : 501:20 | |
netrc file : None | |
offline mode : False | |
## 아나콘다 삭제, base environment 경로 | |
$ rm -rf /opt/anaconda3 | |
# -------------------- | |
# 프로그램 삭제는 anaconda-clean으로도 가능한데 환경변수는 자동 삭제 불가능 | |
# -------------------- | |
# 환경변수 설정 변경 | |
# 사용자 홈 폴더에 있는 .bash_profile, .bashrc, .zshrc 중 파일에서 아나콘다 경로 참조 삭제 | |
$ vim .zshrc | |
# >>> conda initialize >>> | |
# !! Contents within this block are managed by 'conda init' !! | |
__conda_setup="$('/opt/anaconda3/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)" | |
if [ $? -eq 0 ]; then | |
eval "$__conda_setup" | |
else | |
if [ -f "/opt/anaconda3/etc/profile.d/conda.sh" ]; then | |
. "/opt/anaconda3/etc/profile.d/conda.sh" | |
else | |
export PATH="/opt/anaconda3/bin:$PATH" | |
fi | |
fi | |
unset __conda_setup | |
# <<< conda initialize <<< | |
# 수정된 환경 변수 적용 | |
$ source .zshrc |
'IT' 카테고리의 다른 글
TechNexion Pico Pro Maker Kit: Ubuntu 22.04 (0) | 2025.04.06 |
---|---|
Windows와 macOS에서 함께 개발할 때 캐리지 리턴 설정 (0) | 2025.02.15 |
HAOS https Home Assistant https 적용 (0) | 2024.08.04 |
vscode 내 git user 변경 (0) | 2024.07.31 |
Project IDX 웹 IDE (0) | 2024.07.31 |