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

前端 未结 8 1964
被撕碎了的回忆
被撕碎了的回忆 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:15

    Below command should install apache-airflow and lets you pull changes into PyCharm for building DAGs and coding for Airflow.

    SLUGIFY_USES_TEXT_UNIDECODE=yes

    pip install apache-airflow

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

    If you are installing using sudo run one of these commands:

    sudo AIRFLOW_GPL_UNIDECODE=yes pip3 install apache-airflow
    

    OR

    sudo SLUGIFY_USES_TEXT_UNIDECODE=yes pip3 install apache-airflow
    

    NOTE: If pip3 (python3) does not work for you, try pip command. The pip command can be pointing to python2 or python3 installation depending on your system. Verify this by running pip --version.

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

    Windows users can use the command below before installing apache-airflow:

    $ set AIRFLOW_GPL_UNIDECODE=yes
    

    then

    $ pip install apache-airflow
    
    0 讨论(0)
  • 2021-01-31 14:20

    In case you are installing the airflow on Windows and through Python terminal then you need to write this:

    Set SLUGIFY_USES_TEXT_UNIDECODE=yes

    pip install apache-airflow[postgres]

    It worked with me after I struggled with trying many other options. Hope this will work with you too.

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

    Also, if you are installing using sudo you can use:

    export AIRFLOW_GPL_UNIDECODE='yes'
    sudo -E pip3 install apache-airflow
    

    (or use SLUGIFY_USES_TEXT_UNIDECODE)

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

    Use below command to install apache-airflow

    sudo SLUGIFY_USES_TEXT_UNIDECODE=yes \
    pip install apache-airflow[async,devel,celery,crypto,druid,gcp_api,jdbc,hdfs,hive,kerberos,ldap,password,postgres,qds,rabbitmq,s3,samba,slack]
    
    0 讨论(0)
提交回复
热议问题