为了账号安全,请及时绑定邮箱和手机立即绑定

apache-airflow 安装失败

apache-airflow 安装失败

慕盖茨4494581 2021-09-11 10:30:51
我正在尝试以推荐的方式安装 apache-airflow pip install apache-airflow。在安装钟摆(依赖项)期间,出现错误:  error: can't copy 'pendulum/parsing': doesn't exist or not a regular file我认为这与Python distutils 错误有关: "[directory]... does not exist or not a regular file",但这并没有给出在使用 pip 时如何解决这个问题的答案。为摆锤拉 tar 并使用python setup.py install工作进行安装,但是随后我pip install apache-airflow再次执行时,它看到摆锤已经安装,UNINSTALLS,然后尝试使用 pip 再次安装,导致相同的错误。在我做任何这些之前,我正在使用 docker 容器并使用 apt-get 安装 python-setuptools。这是我的 dockerfile,fwiw ...FROM phusion/baseimage:0.10.1MAINTAINER a curious dev RUN apt-get update && apt-get install -y python-setuptools python-pip python-dev libffi-dev libssl-dev zip wgetENV SLUGIFY_USES_TEXT_UNIDECODE=yesRUN wget https://files.pythonhosted.org/packages/5b/57/71fc910edcd937b72aa0ef51c8f5734fbd8c011fa1480fce881433847ec8/pendulum-2.0.4.tar.gzRUN tar -xzvf pendulum-2.0.4.tar.gzRUN cd pendulum-2.0.4/ && python setup.py installRUN pip install apache-airflowCMD airflow initdb && airflow webserver -p 8080有没有人看到我做错了什么?我还没有发现其他人有这个错误,所以我认为我遗漏了一些非常明显的东西。谢谢阅读。
查看完整描述

1 回答

?
潇潇雨雨

TA贡献1833条经验 获得超4个赞

pip先升级。


FROM phusion/baseimage:0.10.1

RUN apt-get update && apt-get install -y python-setuptools python-pip python-dev libffi-dev libssl-dev zip wget

ENV SLUGIFY_USES_TEXT_UNIDECODE=yes

RUN pip install -U pip

RUN pip install apache-airflow

CMD airflow initdb && airflow webserver -p 8080

似乎对我来说很好。


查看完整回答
反对 回复 2021-09-11
  • 1 回答
  • 0 关注
  • 286 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信