我已经运行了docker-airflow,并且通过localhost在浏览器上运行良好。但是,每当我尝试在vscode中打开一个dag文件时,它都会显示导入错误。Docker Container for airflow正在运行。from airflow import DAG
from airflow.operators.bash_operator import BashOperator ?
Airflow模块附带一个主pip包apache-airflow和多个子包,只安装我们需要的(查看文档)
我想测试是否安装了一个子包(例如,获取一个bash命令以了解是否安装了apache-airflow要知道是否安装了apache-airflow,我可以执行pip show apache-airflow,如果已安装,则获取0作为退出代码,否则获取1。如果我执行pip show <
apache-airflow-providers-google 5.0.0 has requirement google-ads>=12.0.0, but you have google-ads 7.0.05.0.0 has requirement google-ads>=12.0.0, but you have google-ads 7.0.0.
apache-airflow-backport-providers-google2021.3.3 has requirement apache-<
在使用pip install apache-airflow进行全新安装后,任何尝试运行airflow的操作都会以python导入错误结束:File "/Users/\*/env/bin/airflow", line 26, in <module> from airflow.bin.cli import CLIFactory
File"/
带命令的气流安装失败昨天一切都很好。今天,我看到了以下错误:
Could not find a version that satisfies the requirement apache-beam[gcp]==2.3.0 (from google-cloud-dataflow->apache-airflow[gcp_api]) (from versions: 0.6.0, 2.0.0, 2.1.0, 2.1.1,