首页 > 解决方案 > 有人可以帮我启动 apache 气流吗?

问题描述

我正在尝试安装 apache 气流,但出现语法错误。我有 python 2.7

错误:

$pip install apache-airflow

Collecting apache-airflow
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/private/var/folders/_z/q60knmsn7m11y4hf82qbg4p00000gn/T/pip-install-f9ssqcze/apache-airflow/setup.py", line 102
        async = [
              ^
    SyntaxError: invalid syntax
Command "python setup.py egg_info" failed with error code 1...

标签: airflow

解决方案


apache-airflow 不支持 Python3.7(截至 2018 年 8 月 22 日)

在 Python 3.6 中安装气流,它应该可以工作。

如果你已经安装了 python3.7,试试 conda 之类的包管理器。你应该没事。以下是一些参考资料:

https://www.mail-archive.com/commits@airflow.incubator.apache.org/msg16846.html https://gitter.im/apache/incubator-airflow?at=5b5130bac86c4f0b47201af0 https://gitter.im/ apache/孵化器气流?at=5b5131149ddf5f4aadf78379


推荐阅读