Mac 安装 thrift-sasl

0x00、安装
当通过Python使用Hive的时候,需要thrift-sasl库,安装命令如下:

pip3 install thrift-sasl

0x01、异常
如果出现以下错误

Building wheel for sasl (setup.py) ... error

sasl/saslwrapper.cpp:249:10: fatal error: 'string' file not found

#include 

^~~~~~~~

1 warning and 1 error generated.

error: command 'gcc' failed with exit status 1

----------------------------------------

ERROR: Failed building wheel for sasl

请使用以下命令,尝试解决问题。

pip install git+https://github.com/JoshRosen/python-sasl.git@fix-build-with-newer-xcode 
pip3 install thrift-sasl

0x02、参考
Pip install fails on OS X Mojave #15

你可能感兴趣的:(Mac 安装 thrift-sasl)