安装 pyhive

linux

sudo apt-get install python-dev libsasl2-dev gcc
sudo pip install sasl
sudo pip install thrift
sudo pip install thrift-sasl
sudo pip install pyhive

windows

windows安装sasl报错,解决方案

下载对应版本预编译的包
https://www.lfd.uci.edu/~gohlke/pythonlibs/#sasl

C:\Python27\Scripts\pip.exe install .\sasl-0.2.1-cp27-cp27m-win_amd64.whl

你可能感兴趣的:(安装 pyhive)