简体   繁体   English

命令“ python setup.py egg_info”失败

[英]Command “python setup.py egg_info” failed

I am trying to install Apache Airflow on Ubuntu 18.04: 我正在尝试在Ubuntu 18.04上安装Apache Airflow:

pip install apache-airflow
Collecting apache-airflow
  Using cached https://files.pythonhosted.org/packages/da/2a/6e9efcd40193850e2f636c7306eede2ff5607aa9f81ff9f7a151d9b13ff8/apache-airflow-1.10.0.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-9gm_exy0/apache-airflow/setup.py", line 124
        async = [
              ^
    SyntaxError: invalid syntax

Why do I get a SyntaxError ? 为什么会出现SyntaxError

After that, I got: 之后,我得到:

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-9gm_exy0/apache-airflow/

It seems that I am missing some packages, but I do not know which one. 似乎我缺少一些软件包,但是我不知道哪个软件包。

This is a bug in apache-airflow caused by async becoming a reserved keyword in Python 3.7, rendering the package unusable in that version. 这是apache-airflow中的一个错误,原因是async成为Python 3.7中的保留关键字,从而导致该软件包在该版本中无法使用。 According to the project's bug tracker , the bug has been fixed in versions 2.0.0 and 1.10.1 of the project, but those have not been released yet at time of writing. 根据该项目的错误跟踪器 ,该错误已在项目的 2.0.0和1.10.1版本中修复,但在撰写本文时尚未发布。 Your only options are (a) use a different Python version, (b) fork the project yourself, or (c) yell at the project's maintainers. 您唯一的选择是(a)使用不同的Python版本,(b)自己分叉项目,或(c)向项目的维护者大喊。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM