본문 바로가기
프로그래머/프로그래밍

Anaconda 정의 및 기본 명령어

by plog 2022. 12. 1.

1. Anaconda?

라이브러리들을 쉽게 설치하고 관리할 수 있게 해주는 도구.

2. 아나콘다 기본 명령어

conda --version // 아나콘다 버전

conda list   // 설치된 라이브러리 리스트 

conda update -n base conda // 아나콘다 코어 업데이트

conda update --all  // 현재 설치되어 있는 모듈 업데이트.

pip --version 

python --version 

python -m pip install --upgrade pip // conda 에서 pip 업그레이드.

3. 아나콘다 가상환경 명령어

conda env list  // 가상환경 리스트

conda create -n test python=3.9  // 새로운 가상 환경 생성.

conda env remove -n main  // 환경 삭제

conda activate <가상환경이름>  // 가상환경 실행

4.아나콘다 jupyter 연결 명령어

jupyter kernelspec list // 주피터 노트북에 연결된(커널목록) 확인

python -m ipykernel install --user --name test // 주피터 연결(커널추가)

jupyter kernelspec uninstall test  // 커널 삭제

댓글