Python 无法使用pip安装气流

Python 无法使用pip安装气流,python,pip,airflow,Python,Pip,Airflow,pip命令: pip install google-cloud-storage apache-beam[gcp]==2.2.0 apache-airflow[gcp_api]==1.9.0 paramiko sshtunnel 错误: ERROR: Command errored out with exit status 1: command: /home/cyao/Project/itcorp-airflow/venv/bin/python3 -c 'import sys, set

pip命令:

pip install google-cloud-storage apache-beam[gcp]==2.2.0 apache-airflow[gcp_api]==1.9.0 paramiko sshtunnel
错误:

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.
错误:命令出错,退出状态为1:
命令:/home/cyao/Project/itcorp/venv/bin/python3-c'import sys、setuptools、tokenize;sys.argv[0]='''''/tmp/pip-install-8hamva8l/apache aiffair/setup.py'''__文件\ \='''''''/tmp/pip-install-8hamva8l/apache afflow/setup.py''';f=getattr(标记化,“'open'”,open)(\uuuuu文件);code=f.read().replace(“\r\n”“”、“\n”“”);f、 close();exec(编译(代码,“'exec'”)“egg”信息——egg base/tmp/pip-install-8hamva8l/apache气流/pip-egg信息
cwd:/tmp/pip-install-8hamva8l/apache/
完整输出(6行):
回溯(最近一次呼叫最后一次):
文件“”,第1行,在
文件“/tmp/pip-install-8hamva8l/apache afflow/setup.py”,第102行
异步=[
^
SyntaxError:无效语法
----------------------------------------
错误:命令出错,退出状态为1:python setup.py egg_info检查日志以获得完整的命令输出。
这是版本1.9.0中的代码。在Python 3.7中,单词
async
变得与Python 3.7+不兼容


使用Python 3.6或使用更高版本的apache airflow

欢迎使用堆栈溢出!请添加一些说明和上下文!帮助我们帮助您!以后请避免只发布错误堆栈跟踪。