How can I run a DAG in another python version?

Keywords: Apache Airflow - Microsoft Azure - How to - Other

Description:
Currently using the Multi-tier Apache Airflow image and it’s running python 3.8.

I need to run a DAG using python 3.6 (doesn’t work on python 3.8). What are the steps to install python 3.6 and run this DAG (and this DAG only) on python 3.6?

Hi @ssanchez,

We do not have any guide to install a different Python version in a running Bitnami Airflow Multi-tier solution. Please note that we build the components from scratch and install them inside the /opt/bitnami folder. You can try to use apt to install a different version of Python system-wide. However, the Bitnami solution will continue using the installed one inside /opt/bitnami. If that DAG runs as a separate process, you will probably be able to configure it to use the “new” Python binary instead of the one inside the Bitnami’s installation directory.

We suggest you ask in the Apache Airflow forums to know if there is any other alternative to configure what Python binary to use to run your DAG.

Thanks