Python 我无法从airflow导入airflow.operators.print\u text\u old
我的命令是Python 我无法从airflow导入airflow.operators.print\u text\u old,python,airflow,Python,Airflow,我的命令是 pip install apache-airflow 气流已成功安装,但我无法从气流导入airflow.operators.print_text_old 错误消息显示: ModuleNotFoundError:没有名为“airflow.operators.print\u text\u old”的模块 图中显示了错误消息 如何从airflow 2.0中成功导入airflow.operators.print\u text\u old?: 通过导入插件中添加的操作员、传感器和挂钩 气流
pip install apache-airflow
气流已成功安装,但我无法从气流导入airflow.operators.print_text_old
错误消息显示:
ModuleNotFoundError:没有名为“airflow.operators.print\u text\u old”的模块
图中显示了错误消息
如何从airflow 2.0中成功导入airflow.operators.print\u text\u old?:
通过导入插件中添加的操作员、传感器和挂钩
气流。{操作员、传感器、挂钩}。不再是
支持,这些扩展只应作为常规导入
python模块
您需要遵循以使您的插件与Airflow 2兼容。hi您能建议我如何从Airflow.operators.print\u text\u导入更新版本@Elad中的旧PrintText吗
from datetime import timedelta
from airflow.models import DAG
from airflow.operators.bash_operator import BashOperator
from airflow.utils.dates import days_ago
from airflow.operators.print_text_old import PrintText