1

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?

Anton
  • 3,170
  • 20
  • 20
med1ben
  • 11
  • 2

1 Answers1

0

This question is about running DAGs in their dedicated virtual environment using a workaround but does not answer your question.

Regarding installing AirFlow in its own dedicated virtual environment you can have a look at pyenv and pipenv. This question may help too.

Alex
  • 1
  • 2