连接python和hortonworks数据平台沙盒

9jyewag0  于 2021-06-26  发布在  Hive
关注(0)|答案(1)|浏览(384)

我想使用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沙盒。
有什么帮助吗?

axkjgtzd

axkjgtzd1#

我尝试了讨论中提到的最后一种解决方案。希望这对你也有帮助!!
hadoop:hiveserver2的python客户端驱动程序安装失败
如果在windows中安装“sasl”时出错
pip安装sasl
您可以安装预编译的数据包。
从以下链接下载x64中python36的sasl数据包:https://www.lfd.uci.edu/~gohlke/pythonlibs/#sasl
然后运行pip install sasl-0.2.1-cp36-cp36m-win\u amd64.whl

相关问题