airflow 执行pip3 install apache-airflow[hive]报错

sasl/saslwrapper.h:22:23: fatal error: sasl/sasl.h: No such file or directory
#include <sasl/sasl.h>
^
compilation terminated.
error: command 'gcc' failed with exit status 1



Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-7tl_w2pb/sasl/setup.py';f=getattr(tokenize,
'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record
/tmp/pip-t21oqvty-record/install-record.txt --single-version-externally-managed --compile
" failed with error code 1 in
/tmp/pip-build-7tl_w2pb/sasl/

 

 

解决方法

yum install gcc libffi-devel python-devel openssl-devel -y

yum python3-devel -y
yum search sasl

yum -y install cyrus-sasl cyrus-sasl-devel cyrus-sasl-lib

重新安装
pip3 install apache-airflow[hive]

 

posted on 2020-09-02 11:43  鑫春  阅读(692)  评论(0编辑  收藏  举报

导航