【问题标题】:Unable to install Airflow even after setting SLUGIFY_USES_TEXT_UNIDECODE and AIRFLOW_GPL_UNIDECODE即使设置了 SLUGIFY_USES_TEXT_UNIDECODE 和 AIRFLOW_GPL_UNIDECODE 也无法安装 Airflow
【发布时间】:2019-08-09 22:09:57
【问题描述】:

我正在通过命令安装airflowpython3 setup.py install。它接受需求文件requirements/athena.txt,即:

apache-airflow[celery,postgres,hive,password,crypto]==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=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

【问题讨论】:

  • python3是版本
  • 哪个python版本? 3.5 还是 3.7?
  • Python 3.7.2 是确切的版本

标签: python python-3.x pip airflow


【解决方案1】:

Airflow 尚未正式支持 python3.7。

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

AIRFLOW_GPL_UNIDECODE=yes pip3 install "apache-airflow[celery,postgres,hive,password,crypto]==1.10.1"```

【讨论】:

  • 我创建了一个 virtualenv(仅供参考)。有效!不过,我们应该研究为什么没有拾取环境变量。有什么想法吗?
猜你喜欢
  • 1970-01-01
  • 2020-06-21
  • 2020-09-10
  • 1970-01-01
  • 1970-01-01
  • 2019-09-22
  • 2020-12-18
  • 2023-03-09
  • 1970-01-01
相关资源
最近更新 更多