即使设置了SLUGIFY_USES_TEXT_UNIDECODE和AIRFLOW_GPL_UNIDECODE,也无法安装Airflow

Avi*_*ava 7 python pip python-3.x airflow

airflow通过命令安装: python3 setup.py install。它包含需求文件,requirements/athena.txt该文件是:

apache-airflow [芹菜,postgres,蜂巢,密码,密码] == 1.10.1

我收到一个错误:

RuntimeError: By default one of Airflow's dependencies installs a GPL dependency (unidecode). To avoid this dependency set SLUGIFY_USES_TEXT_UNIDECODE=yes in your environment when you install or upgrade Airflow. To force installing the GPL version set AIRFLOW_GPL_UNIDECODE
Run Code Online (Sandbox Code Playgroud)

要消除此错误,请设置export SLUGIFY_USES_TEXT_UNIDECODE=yesexport AIRFLOW_GPL_UNIDECODE=yes。但是,运行命令python3 setup.py install仍会给出相同的错误,没有任何更改。要检查环境变量:

?  athena-py git:(pyspark-DataFrameStatFunctions) echo $SLUGIFY_USES_TEXT_UNIDECODE
yes
?  athena-py git:(pyspark-DataFrameStatFunctions) echo $AIRFLOW_GPL_UNIDECODE
yes
Run Code Online (Sandbox Code Playgroud)

Arp*_*nki 4

Airflow 尚未正式支持 python3.7。

在此输入图像描述

我认为pip可能没有获取您的环境变量。您可以在 shell 上尝试以下命令,以确保它选择您提供的选项。

AIRFLOW_GPL_UNIDECODE=yes pip3 install "apache-airflow[celery,postgres,hive,password,crypto]==1.10.1"```
Run Code Online (Sandbox Code Playgroud)