【问题标题】:pip install airflow not working for version 1.7.1.3点安装气流不适用于版本 1.7.1.3
【发布时间】:2019-05-08 05:12:21
【问题描述】:

自过去 2 年以来,我们一直在我们的 prod 环境中使用气流,并且是 1.7.1.3 版本。

最近,当我尝试执行 pip install airflow==1.7.3.1 时,安装失败,详细日志有助于跟踪工件位置 - https://pypi.org/simple/apache-airflow/

我看到 1.7.1.3 版本的气流已从那里删除。

是否还有其他托管工件的存储库?如果不是,我还必须使用 pip 安装哪个其他替代方案?

【问题讨论】:

  • 如果你幸运的话,在你之前安装过airflow的机器上,你的缓存中可能还有一个轮子:find ~/.cache/pip -name apache-airflow*

标签: python pip airflow pypi


【解决方案1】:

注意,Airflow 的 pip 名称现在是 apache-airflow,至于版本,1.7.1.3 标签是 still available from the Github repository。要安装它,您需要克隆存储库,签出特定标签,然后对存储库文件夹执行 pip install

$ git clone https://github.com/apache/incubator-airflow.git
Cloning into 'incubator-airflow'...
remote: Enumerating objects: 9, done.
remote: Counting objects: 100% (9/9), done.
remote: Compressing objects: 100% (9/9), done.
remote: Total 40506 (delta 3), reused 1 (delta 0), pack-reused 40497
Receiving objects: 100% (40506/40506), 27.82 MiB | 1.75 MiB/s, done.
Resolving deltas: 100% (29080/29080), done.
$ cd incubator-airflow
$ git checkout tags/1.7.1.3
Note: checking out 'tags/1.7.1.3'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at 209bf9c7... Adding .readthedocs.yml to build docs for 1.7.1.3
$ pip install .

【讨论】:

  • 也可以wget https://github.com/apache/incubator-airflow/archive/1.7.1.3.tar.gz &amp;&amp; tar -xzf 1.7.1.3.tar.gz &amp;&amp; cd airflow-1.7.1.3 &amp;&amp; pip install .省略Git
  • @Rolf,您的评论可以单独作为答案。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2016-08-31
  • 2021-06-09
  • 2018-10-30
  • 1970-01-01
  • 1970-01-01
  • 2016-10-20
相关资源
最近更新 更多