You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by po...@apache.org on 2022/07/07 18:45:24 UTC
[airflow] branch main updated: Update PythonVirtualenvOperator Howto (#24782)
This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 011fbae583 Update PythonVirtualenvOperator Howto (#24782)
011fbae583 is described below
commit 011fbae583a4347eda85d5b7797a80d46ff06062
Author: nanohanno <44...@users.noreply.github.com>
AuthorDate: Thu Jul 7 20:44:59 2022 +0200
Update PythonVirtualenvOperator Howto (#24782)
* Update PythonVirtualenvOperator Howto
---
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