Error while install airflow: By default one of Airflow's dependencies installs a GPL

前端 未结 8 1965
被撕碎了的回忆
被撕碎了的回忆 2021-01-31 13:50

Getting the following error after running pip install airflow[postgres] command:

> raise RuntimeError("By default one of Airflow\'s dependenc         


        
相关标签:
8条回答
  • 2021-01-31 14:33

    Run the following command in your python terminal: SLUGIFY_USES_TEXT_UNIDECODE=yes pip install apache-airflow==1.10.0

    0 讨论(0)
  • 2021-01-31 14:35

    Try the following:

    export AIRFLOW_GPL_UNIDECODE=yes
    

    OR

    export SLUGIFY_USES_TEXT_UNIDECODE=yes
    

    Using export makes the environment variable available to all the subprocesses.

    Also, make sure you are using pip install apache-airflow[postgres] and not pip install airflow[postgres]

    Which should you use: if using AIRFLOW_GPL_UNIDECODE, airflow will install a dependency that is under GPL license, which means you won't be able to distribute your resulting application commercially. If that's a problem for you, go for SLUGIFY_USES_TEXT_UNIDECODE.

    0 讨论(0)
提交回复
热议问题