问题描述
运行 pip install airflow [postgres] 命令后出现以下错误:
Getting following error after running pip install airflow[postgres] command:
RuntimeError:默认情况下,Airflow的一个依赖项会安装GPL
依赖项(unidecode)。为避免这种情况依赖集
SLUGIFY_USES_TEXT_UNIDECODE =在您的环境中安装
或升级Airflow时是。要强制安装GPL版本,请设置
AIRFLOW_GPL_UNIDECODE
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
我正在尝试在Debian 9中安装
I am trying to install in debian 9
推荐答案
尝试以下操作:
export AIRFLOW_GPL_UNIDECODE=yes
OR
export SLUGIFY_USES_TEXT_UNIDECODE=yes
使用 export
使环境变量可用于所有子流程。
Using export
makes the environment variable available to all the subprocesses.
另外,使苏你使用的是 pip install apache-airflow [postgres]
而不是 pip install airflow [postgres]
Also, make sure you are using pip install apache-airflow[postgres]
and not pip install airflow[postgres]
您应该使用哪个:如果使用AIRFLOW_GPL_UNIDECODE,airflow将安装GPL许可下的依赖项,这意味着您将无法以商业方式分发最终的应用程序。如果您有问题,请选择SLUGIFY_USES_TEXT_UNIDECODE。
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.
这篇关于安装气流时出错:默认情况下,气流的一个依赖项会安装GPL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!