运行后出现如下错误pip install airflow[postgres]
命令:
> raise RuntimeError("By default one of Airflow's dependencies installs
> a GPL "
>
> 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 中安装
请尝试以下操作:
export AIRFLOW_GPL_UNIDECODE=yes
OR
export SLUGIFY_USES_TEXT_UNIDECODE=yes
Using export
使环境变量可供所有子进程使用。
另外,请确保您正在使用pip install apache-airflow[postgres]
并不是pip install airflow[postgres]
您应该使用哪个:如果使用 AIRFLOW_GPL_UNIDECODE,airflow 将安装 GPL 许可证下的依赖项,这意味着您将无法以商业方式分发生成的应用程序。如果这对您来说是个问题,请使用 SLUGIFY_USES_TEXT_UNIDECODE。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)