
이번 글에서는 에어플로우를 설치하는 방법을 정리한다. Airflow를 설치하면서 constraint 파일을 설정해주는 곳에서 시간이 필요한데, 파이썬 3.9 버전 가상환경을 사용할 때 Airflow 3.0.4 버전을 많이 사용하는 것 같아서 파이썬 3.9 기준으로 설명한다.
개발하고 싶은 프로젝트에서 파이썬 가상환경을 실행시킨다.
파이썬 Scripts 폴더로 들어가서 가상환경을 실행시키는 방법도 있을 것이다.
activate
VS code 터미널창을 열고 인터프리터 설정을 해주고 cmd에서 가상환경을 바라보도록 설정해도된다.
https://airflow.apache.org/docs/apache-airflow/stable/installation/installing-from-pypi.html
pip install "apache-airflow[celery]==3.0.4" --constraint "https://raw.githubusercontent.com/apache/airflow/constraints-3.0.4/constraints-3
.9.txt"
pip install "apache-airflow[celery]==2.5.2" --constraint "https://raw.githubusercontent.com/apache/airflow/constraints-3.0.4/constraints-3
.7.txt"
pip install "apache-airflow[celery]==3.1.3" --constraint "https://raw.githubusercontent.com/apache/airflow/constraints-3.1.3/constraints-3.12.txt"