连接python与Hortonworks数据平台sandbox

2024-10-02 00:38:12 发布

您现在位置:Python中文网/ 问答频道 /正文

我想使用pyhive/phys2库。我安装了pyhive,但是当我在程序中使用它时,我得到一个Import error:No sasl module found。所以我安装了sasl。然后我得到:

sasl/saslwrapper.cpp(247) : fatal error C1083: Cannot open include file: 'stdint.h': No such file or directory
error: command 'C:\Users\Imdad\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe' failed with exit status 2

我试图找到一个解决办法,但没有任何帮助。 我在Windows10上使用Python2.7和HDP2.5沙盒。在

有什么帮助吗?在


Tags: noimport程序errorcppfilemodulepyhive
1条回答
网友
1楼 · 发布于 2024-10-02 00:38:12

我尝试了这次讨论中提到的最后一个解决方案。希望这对你也有帮助!!
Hadoop: Python client driver for HiveServer2 fails to install

If you have an error in Windows when installing "sasl" with

pip install sasl

you can install pre-compiled packet.

Download sasl packet for python36 in x64 from link: https://www.lfd.uci.edu/~gohlke/pythonlibs/#sasl

Then run pip install sasl-0.2.1-cp36-cp36m-win_amd64.whl

相关问题 更多 >

    热门问题