You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by ep...@apache.org on 2022/08/15 18:44:42 UTC

[airflow] 06/45: Update PythonVirtualenvOperator Howto (#24782)

This is an automated email from the ASF dual-hosted git repository.

ephraimanierobi pushed a commit to branch v2-3-test
in repository https://gitbox.apache.org/repos/asf/airflow.git

commit 03b2fad778f6060cefda5dbfdfd36e35f88f8a70
Author: nanohanno <44...@users.noreply.github.com>
AuthorDate: Thu Jul 7 20:44:59 2022 +0200

    Update PythonVirtualenvOperator Howto (#24782)
    
    * Update PythonVirtualenvOperator Howto
    
    (cherry picked from commit 011fbae583a4347eda85d5b7797a80d46ff06062)
---
 docs/apache-airflow/howto/operator/python.rst | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/docs/apache-airflow/howto/operator/python.rst b/docs/apache-airflow/howto/operator/python.rst
index 210b528cf2..ac9070208f 100644
--- a/docs/apache-airflow/howto/operator/python.rst
+++ b/docs/apache-airflow/howto/operator/python.rst
@@ -60,8 +60,7 @@ is evaluated as a :ref:`Jinja template <concepts:jinja-templating>`.
 PythonVirtualenvOperator
 ========================
 
-Use the :class:`~airflow.operators.python.PythonVirtualenvOperator` to execute
-Python callables inside a new Python virtual environment.
+Use the :class:`~airflow.operators.python.PythonVirtualenvOperator` to execute Python callables inside a new Python virtual environment. The ``virtualenv`` package needs to be installed in the environment that runs Airflow (as optional dependency ``pip install airflow[virtualenv] --constraint ...``).
 
 .. exampleinclude:: /../../airflow/example_dags/example_python_operator.py
     :language: python