我正在尝试安装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 回答
apache-airflow不支持Python3.7(截至2018年8月22日)
Install airflow in 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