在mac(10.14.3 ) +python3.6.5上安装airflow(注意不要用3.7,airflow initdb时会引入tenacity的包(from tenacity.async import AsyncRetrying)async在python3.7版本被加入了关键字,导致airflow无法在python3.7运行,https://github.com/jd/tenacity/issues/117)
安装命令:SLUGIFY_USES_TEXT_UNIDECODE=yes pip install apache-airflow[all]
pip install docutils
报错
OSError: mysql_config not found
说明系统没有按安装python-mysql驱动和mysql,使用brew下载
系统没有brew,登陆brew官网查看安装的脚本
https://brew.sh/index_zh-cn
brew install mysql-connector-c
pip install mysql
报错 Exception: Wrong MySQL configuration: maybe https://bugs.mysql.com/bug.php?id=86971
root用户下 vim /usr/local/bin/mysql_config
把114行:libs=“libs -l”
改为:libs="$l