아나콘다(Anaconda)는 PYTHON 과 R 프로그래밍 언어로 된 과학 컴퓨팅(데이터 과학, 기계 학습 응용 프로그램, 대규모 데이터 처리, 예측 분석 등)분야의 패키지들의 모음을 제공하는 배포판이다.
Anaconda 배포판은 1,200 만 명이 넘는 사용자가 사용하며 Windows, Linux 및 MacOS에 적합한 1400 가지 이상의 인기있는 데이터 과학 패키지를 포함한다.
Anaconda를 설치하기 위해서는 웹사이트에서 자신의 OS(예: Windows, MacOS, Linux)에 맞는 배포판을 다운받아 설치하면 된다.
현재 Anaconda 는 Python 3.7 기반의 버전과 Python 2.7 기반의 버전을 제공한다.
conda 는 아나콘다에서 패키지 버전 관리를 위해 제공되는 어플리케이션이다.
Python 사용자들이 패키지 설치 시 가장 어려움을 겪는 의존성 문제를 conda 를 활용함으로써 쉽게 해결할 수 있다.
본 문서는 KISTI 시스템에서 Python 사용자를 위하여 conda 패키지 활용하는 방법을 소개 한다.
소개 페이지의 "/home01/userID" 는 테스트 계정의 홈디렉토리로 자신에 맞는 경로로 적절히 변경해서 사용해야 한다.
가. Conda의 사용
Miniconda는 https://docs.conda.io/en/latest/miniconda.html 사이트 에서 각 OS 에 맞는 버전을 다운 받을 수 있고, Anaconda 는 https://www.anaconda.com/distribution/#download-section 사이트 에서 각 OS 에 맞는 버전을 다운 받을 수 있다.
명령어 모음
내용
clean
Remove unused packages and caches.
config
Modify configuration values in .condarc. This is modeled after the git config command.
Writes to the user .condarc file (/home01/userID/.condarc) by default.
create
Create a new conda environment from a list of specified packages.
help
Displays a list of available conda commands and their help strings.
info
Display information about current conda install.
init
Initialize conda for shell interaction. [Experimental]
install
Installs a list of packages into a specified conda environment.
list
List linked packages in a conda environment.
package
Low-level conda package utility. (EXPERIMENTAL)
remove
Remove a list of packages from a specified conda environment.
uninstall
Alias for conda remove.
run
Run an executable in a conda environment. [Experimental]
search
Search for packages and display associated information.
The input is a MatchSpec, a query language for conda packages.
See examples below.
update
Updates conda packages to the latest compatible version.