potiuk commented on issue #19701: URL: https://github.com/apache/airflow/issues/19701#issuecomment-974019390
> do you know how many packages one should install in the new environment. This is unfeasible to say the less. Couldn“t we have variable that are valid only for a particular DAG and that can activate using spawn instead of fork? You can install the packages you need in the system and use system_site_packages=True: https://airflow.apache.org/docs/apache-airflow/stable/_api/airflow/operators/python/index.html#airflow.operators.python.PythonVirtualenvOperator This will create a new virtualenv with the system packages symbolically linked to the installed packages. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
