我正在尝试安装 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...
最佳答案
apache-airflow 不支持 Python3.7(截至 2018 年 8 月 22 日)
在 Python 3.6 中安装 airflow 它应该可以工作。
如果你已经安装了 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
关于airflow - 有人可以帮我启动 apache Airflow 吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51869070/