AI
Anaconda(아나콘드) conda 사용법
hwpform
2024. 6. 8. 14:17
728x90
반응형
명령어
# 가상환경 목록
# C:\Users\shim>conda env list
conda environments:
base C:\Users\shim\anaconda3
cuda C:\Users\shim\anaconda3\envs\cuda
streamlit C:\Users\shim\anaconda3\envs\streamlit
textgenwebui C:\Users\shim\anaconda3\envs\textgenwebui
C:\Users\shim\anaconda3\envs\textgenwebui\text-generation-webui\installer_files\conda
C:\Users\shim\anaconda3\envs\textgenwebui\text-generation-webui\installer_files\env
# 가상환경 생성
# C:\Users\shim>conda create -n langserver
Channels:
- defaults
Platform: win-64
Collecting package metadata (repodata.json): done
Solving environment: done
Package Plan
environment location: C:\Users\shim\anaconda3\envs\langserver
Proceed ([y]/n)? y
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
C:\Users\shim>
# 가상환경 활성화
# C:\Users\shim>conda activate langserver
(langserver) C:\Users\shim>
# 가상환경 비활성화
# (langserver) C:\Users\shim>conda deactivate
C:\Users\shim>
# 가상환경 패키지 설치하기
# (langserver) C:\Users\shim>conda install <패키지명>
# 가상환경 패키지 삭제하기
# (langserver) C:\Users\shim>conda uninstall <패키지명>
# 가상환경 삭제
# C:\Users\shim>conda env remove -n langserver
Remove all packages in environment C:\Users\shim\anaconda3\envs\langserver:
Everything found within the environment (C:\Users\shim\anaconda3\envs\langserver), including any conda environment configurations and any non-conda files, will be deleted. Do you wish to continue?
(y/[n])? y
728x90
반응형
LIST