airflow安装过程各种报错解决办法

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/wcandy001/article/details/88224399

在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="$libs -lmysqlclient -lssl -lcrypto"
重新执行pip install mysql
详情请看https://www.easegamer.com/?p=545

报错
ModuleNotFoundError: No module named ‘Cython’

解决办法:pip install Cython

报错
fatal error: ‘sqlfront.h‘ file not found

brew install [email protected]
brew link --force [email protected]
pip install pymssql

猜你喜欢

转载自blog.csdn.net/wcandy001/article/details/88224399