Airflow Probem安装dnspython气流装卸工puckel

Airflow Probem安装dnspython气流装卸工puckel,airflow,Airflow,我正在运行dockerfile 有了这些额外的安装 && pip install pymongo[srv] \ && pip install dnspython \ 登录内置命令说这是成功的 pip安装dnspython 收集dnspython 下载dnspython-1.16.0-py2.py3-none-any.whl(188KB) 安装收集的软件包:dnspython 已成功安装dnspython-1.16.0 但在气流中是不可能看到dnspython被

我正在运行dockerfile

有了这些额外的安装

&& pip install pymongo[srv] \
&& pip install dnspython \
登录内置命令说这是成功的

  • pip安装dnspython 收集dnspython 下载dnspython-1.16.0-py2.py3-none-any.whl(188KB) 安装收集的软件包:dnspython 已成功安装dnspython-1.16.0 但在气流中是不可能看到dnspython被设置的 但在蒙哥,用蟒蛇机连接气流是不可能的
错误-必须安装“dnspython”模块才能使用mongodb+srv://URI

进口pymongo 导入ssl

client=pymongo.MongoClient(“mongodb+srv://user:password@主机/测试?retryWrites=true&w=mailty”,ssl=true,ssl\u证书\u要求=ssl.cert\u无) db=client.test
从我的本地机器开始工作

我不确定为什么不工作,但您可以尝试通过气流安装这两个软件包,看看是否工作。额外的功能包括
pymongo
dnspython
,您可以在通过
aiffair\u DEPS
环境变量创建图像时指定这两个功能。