From 2a742c5cc582a743e0295220108e7ffd5b625a71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=96=87=E8=89=B3?= Date: Sat, 8 Jan 2022 17:39:02 +0800 Subject: [PATCH] Update example_python_operator.py --- dags/example_python_operator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dags/example_python_operator.py b/dags/example_python_operator.py index 98e5591..691259a 100644 --- a/dags/example_python_operator.py +++ b/dags/example_python_operator.py @@ -17,7 +17,7 @@ with DAG( tags=['example'], ) as dag: # [START howto_operator_python] - @task(task_id="print_the_context") + @task.virtualenv(task_id="virtualenv_python", requirements=["sklearn"], system_site_packages=False) def print_context(ds=None, **kwargs): """Print the Airflow context and ds variable from the context.""" print(ds)