我通过命令安装airflow
:python3 setup.py install
。它接受需求文件,requirements/athena.txt
,它是:
Apache的气流[芹菜,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
要删除此错误,我设置export SLUGIFY_USES_TEXT_UNIDECODE=yes
和export AIRFLOW_GPL_UNIDECODE=yes
。但是,运行命令python3 setup.py install
仍然会给出相同的错误,没有任何改变。要检查env变量:
➜ athena-py git:(pyspark-DataFrameStatFunctions) echo $SLUGIFY_USES_TEXT_UNIDECODE
yes
➜ athena-py git:(pyspark-DataFrameStatFunctions) echo $AIRFLOW_GPL_UNIDECODE
yes