Python은 사용할 모듈을 항상 직접 설치해야 한다.
Anaconda는 많은 모듈을 포함하고 있는 배포판이다.
Python의 공식 module 관리자
pip 명령어
- pip list : 현재 설치된 moddule list 반환
- pip install module_name : module 설치
- pip uninstall module_name : 설치된 모듈 제거
pip를 사용하면 conda환경에서 dependency 관리가 정확하지 않을 수 있다. 그러므로 Anaconda에서는 가급적 conda 명령으로 module을 관리하는 것이 좋다.
단, 모든 module이 conda로 설치되는 것은 아니다.
conda 명령어
- conda list : 설치된 모듈 list
- conda install module_name : 모듈 설치
- conda uninstall module_name : 모듈 제거
- conda install -c channel_name module_name
- 지정된 배포 channel에서 module 설치
* 이 글은 제로베이스 데이터 스쿨의 강의 자료 일부를 발췌하여 작성되었습니다.