[英]Failed to install airflow with pip
pip command: pip 命令:
pip install google-cloud-storage apache-beam[gcp]==2.2.0 apache-airflow[gcp_api]==1.9.0 paramiko sshtunnel
Error:错误:
ERROR: Command errored out with exit status 1:
command: /home/cyao/Project/itcorp-airflow/venv/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-8hamva8l/apache-airflow/setup.py'"'"'; __file__='"'"'/tmp/pip-install-8hamva8l/apache-airflow/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-8hamva8l/apache-airflow/pip-egg-info
cwd: /tmp/pip-install-8hamva8l/apache-airflow/
Complete output (6 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-8hamva8l/apache-airflow/setup.py", line 102
async = [
^
SyntaxError: invalid syntax
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
This is the code from apache-airflow setup.py
from version 1.9.0.这是来自 1.9.0 版apache- setup.py
的代码。 In Python 3.7 the word async
became a reserved keyword so the code is incompatible with Python 3.7+.在 Python 3.7 中, async
一词成为保留关键字,因此代码与 Python 3.7+ 不兼容。
Either use Python 3.6 or use later version of apache-airflow
.使用 Python 3.6 或使用更高版本的apache-airflow
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.