What version of Python does Astronomer support?

I’m trying to figure out what version of Python I need to have installed to run Astronomer!

By default, Astronomer ships with python 3.7 with plans to support python 3.8 in the near future.

If you need to run code on older versions of python, there are a few options available to you.

You can use this operator to run PythonOperators with a different version of python. Just be sure to add whatever version of python you are using to the packages.txt file.

If you add the version of python you want into the packages.txt file, you can manually call other python files in your project with a bash command. Note for this approach, you will have to build in the python files you want to call into your project.

You can build an external image with whatever version of python you want and run that image on Astronomer with this operator. This approach will also let you specify resources for that task regardless of what kind of executor you are using and allow you to manage your code for that particular task completely independently of Airflow.

If none of these solutions work, contact us and we can dive a little deeper into your use case to figure out something that does!