I have been using airflow for the past few weeks, having installed it, its dependencies and all the requirements of the dags I need to run inside of a py 2.7 virtual env. I would like to be able to create a python 3 virtual environment, install only airflow and its dependencies inside, and then create dags with python operators that would use the python 2.7 distribution and all its libraries on my machine.
One way that I have been thinking to do this is to only use bash operators where I specify the python version to use every time, but this doesn't seem very clean, is there any other way?