How to run Airflow PythonOperator in a virtual environment

后端 未结 2 637
粉色の甜心
粉色の甜心 2021-02-07 10:58

I have several python files that I\'m currently executing using BashOperator. This allows me the flexibility to choose the python virtual environment easily.

fro         


        
2条回答
  •  名媛妹妹
    2021-02-07 11:38

    My work-around is to use a Bash Operator to call /path/to/project/venv/bin/python my.py

提交回复
热议问题