Cloud Composer 1 is in the post-maintenance mode. Google does not release any further updates to Cloud Composer 1, including new versions of Airflow, bugfixes, and security updates. We recommend planning migration to Cloud Composer 2.
Stay organized with collections
Save and categorize content based on your preferences.
Cloud Composer supports Python 3.
To see the major.minor.patch versions of Python 3 used in a
specific Cloud Composer image, see
Cloud Composer version list.
After an environment is created, you cannot switch an existing
environment to a different minor Python version.
Python 2 support in Cloud Composer 1
Support for Python 2 was deprecated in Cloud Composer
version 1.19.0:
Starting from version 1.19.0, it is not possible to create new environments
with Python 2, or upgrade existing environments with Python 2 to 1.19.0
and later versions of Cloud Composer.
Starting from version 1.19.6, it is no longer possible to use any operators
that call Python 2. In particular, PythonVirtualenvOperator can no
longer create virtual environments with Python 2.
Existing environments with Python 2 are not impacted by this change. It is
possible to upgrade such environments to Cloud Composer version 1.18.12
and earlier through gcloud CLI, API, and Terraform.
New Airflow operators, sensors, and hooks are only developed for
Python 3, which may cause connectivity options to be outdated for Python 2
environments. As such, we highly recommend migrating your DAGs to a
Python 3 environment, and creating all new environments with Python 3.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-13 UTC."],[[["Cloud Composer exclusively supports Python 3, and the specific versions can be found in the Cloud Composer version list."],["Once a Cloud Composer environment is set up, its Python minor version cannot be changed."],["Cloud Composer version 1.19.0 deprecated Python 2 support, preventing the creation of new Python 2 environments or the upgrade of existing ones."],["Starting from version 1.19.6, operators that use Python 2, such as `PythonVirtualenvOperator`, are no longer functional."],["Although existing Python 2 environments are not directly affected, new Airflow components are developed only for Python 3, making migration to Python 3 highly recommended."]]],[]]