美文网首页安全
airflow 安装失败解决方案

airflow 安装失败解决方案

作者: yunpiao | 来源:发表于2018-10-29 17:44 被阅读0次

问题 1

pip直接安装airflow的时候会报错

Quick Start
The installation is quick and straightforward.

# airflow needs a home, ~/airflow is the default,
# but you can lay foundation somewhere else if you prefer
# (optional)
export AIRFLOW_HOME=~/airflow

# install from pypi using pip
pip install apache-airflow

# initialize the database
airflow initdb

# start the web server, default port is 8080
airflow webserver -p 8080

# start the scheduler
airflow scheduler

# visit localhost:8080 in the browser and enable the example dag in the home page

出错信息

    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-wB2hqV/apache-airflow/setup.py", line 393, in <module>
        do_setup()
      File "/tmp/pip-build-wB2hqV/apache-airflow/setup.py", line 258, in do_setup
        verify_gpl_dependency()
      File "/tmp/pip-build-wB2hqV/apache-airflow/setup.py", line 49, in verify_gpl_dependency
        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
    
    ----------------------------------------

解决方案

环境变量问题

SLUGIFY_USES_TEXT_UNIDECODE=yes pip install apache-airflow==1.10.0

ref:
https://stackoverflow.com/questions/52203441/error-while-install-airflow-by-default-one-of-airflows-dependencies-installs-a

最简单安装方法

sudo docker run -it  astronomerio/airflow bash
airflow initdb
airflow server

相关文章

  • airflow 安装失败解决方案

    问题 1 pip直接安装airflow的时候会报错 出错信息 解决方案 环境变量问题 ref:https://st...

  • Ansible Role 大数据 之【airflow】

    Ansible Role: airflow 安装airflow 介绍 Airflow 被 Airbnb 内部用来创...

  • 005-Airflow安装

    环境准备-Airflow 1.1 Airflow安装 1.2 Airflow配置 在 /etc/profile 文...

  • airflow1.8+mysql5.6部署

    1.airflow安装 pip install airflowpip install airflow[celery...

  • airflow

    下载安装airflow 使用pip 安装 pip install apache-airflow 将默认的数据库sq...

  • airflow 升级1.10

    1.查看 airflow 配置 2.启动虚拟环境 3.找出 airflow 安装包的位置 4.指定 airflow...

  • Mac安装Homebrew

    2020版mac 安装homebrew失败 极简解决方案

  • Airflow 安装

    前段时间部门要求研究airflow,大概记录一下安装的步骤。airflow是一个python实现的工作流管理平台,...

  • Airflow 安装

    平台:ubuntu apt-get install libmysqlclient-devapt-get insta...

  • 安装Airflow

    上一篇:etl bigdata[https://www.jianshu.com/p/4538e8c3b898]更多...

网友评论

    本文标题:airflow 安装失败解决方案

    本文链接:https://www.haomeiwen.com/subject/tiqitqtx.html