Airflow 1.10 Installation Failing

前端 未结 1 1323
不思量自难忘°
不思量自难忘° 2020-12-21 18:30

I have a working Airflow environment using Airflow version 1.9 that is running on an Amazon EC2-Instance. I need to upgrade to the latest version of Airflow which is 1.10. I

相关标签:
1条回答
  • 2020-12-21 18:40

    There are a number of install extras ("optional dependencies") one can provide when doing a fresh install. Airflow doesn't install them all by default because there are dozens and some require special dependencies like Mesos or Kubernetes.

    https://airflow.readthedocs.io/en/stable/installation.html#extra-packages

    Note that for 1.10.0-1.10.2 you now need to preface install commands or export this env var:

    export SLUGIFY_USES_TEXT_UNIDECODE=yes
    

    This is no longer required for 1.10.3 and up.

    Once 1.10 is released you'll be able to install extras like this:

    pip install apache-airflow[celery,devel,postgres]
    

    When installing from git, the pip syntax for installing extras is a little more complicated:

    pip install git+git://github.com/apache/incubator-airflow.git@v1-10-stable#egg=apache-airflow[celery,devel,postgres]
    

    If you're trying to install Airflow with MySQL support, you can include the mysql extra:

    pip install git+git://github.com/apache/incubator-airflow.git@v1-10-stable#egg=apache-airflow[mysql]
    

    If you really do want to install all extras, you can use the all extra:

    pip install git+git://github.com/apache/incubator-airflow.git@v1-10-stable#egg=apache-airflow[all]
    

    Note: If you previously installed any extras for apache-airflow 1.9 on PyPI, you'd need to provide them again here when installing 1.10 from GitHub since pip doesn't associate the GitHub repo with the PyPI package.


    Questions

    • Are you running Python 3.6.5?
    • Do you still get the same error if you include mysql extra on install?
    0 讨论(0)
提交回复
热议问题