安装Python SASL时出现Visual C ++错误

时间:2015-06-25 05:16:35

标签: python hadoop hive sasl

我需要使用python查询hive。

目前我正在使用此源代码。

https://cwiki.apache.org/confluence/display/Hive/Setting+Up+HiveServer2#SettingUpHiveServer2-PythonClientDriver

问题是运行此查询的依赖关系是SASL和Thrift包装器。

安装SASL软件包时出现此错误。

setup.py install
running install
running bdist_egg
running egg_info
writing sasl.egg-info\PKG-INFO
writing top-level names to sasl.egg-info\top_level.txt
writing dependency_links to sasl.egg-info\dependency_links.txt
reading manifest file 'sasl.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'sasl.egg-info\SOURCES.txt'
installing library code to build\bdist.win-amd64\egg
running install_lib
running build_py
running build_ext
building '_saslwrapper' extension
C:\Users\admin\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Isasl -IC:\Python27\include -IC:\Python27\PC /Tpsasl/saslwrapper.cpp /Fobuild\temp.win-amd64-2.7\Release\sasl/saslwrapper.objsaslwrapper.cpp
c:\users\admin\desktop\dddd\sasl-0.1.3.tar\dist\sasl-0.1.3\sasl-0.1.3\sasl\saslwrapper.h(20) : fatal error C1083: Cannot open include file: 'stdint.h': No such file or directory
error: command 'C:\\Users\\admin\\AppData\\Local\\Programs\\Common\\Microsoft\\Visual C++ for Python\\9.0\\VC\\Bin\\amd64\\cl.exe' failed with exit status 2

请提供解决方案。

我的环境:赢得7 64位

0 个答案:

没有答案