有人可以帮助我启动apache气流吗?

时间:2018-08-16 03:08:41

标签: apache airflow

我正在尝试安装apache airflow,但出现语法错误。我有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...

1 个答案:

答案 0 :(得分:5)

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/incubator-airflow?at=5b5131149ddf5f4aadf78379