0. ANACONDA
1. VirtualENV(venv)
0. ANACONDA
- 환경생성
conda create -n ENV_NAME python=3.x
# from file
conda env create -n ENV_NAME -f requirements.txt
- 환경실행
conda activate ENV_NAME
- 환경종료
deactivate
- 패키지관리
# txt
conda env export > requirements.txt
# yml
conda env export > requirements.yml
ref: https://www.anaconda.com/
1. VirtualENV(venv)
- 환경생성
python3 -m venv ENV_NAME
- 환경실행
source ENV_NAME/bin/activate
- 환경종료
deactivate
- 패키지관리
# install
pip3 install -r requirements.txt
# freeze
pip3 freeze > requirements.txt
ref: https://docs.python.org/3/library/venv.html
ref: https://devbull.xyz/python-create-environment/