当前位置: 首页 > 工具软件 > pyhs > 使用案例 >

安装pyhs2报错,装不上,添加装sasl依赖也不行

殳宸
2023-12-01

我的python在window平台,hive在服务器上,现在想用python操作hive数据,在Windows平台安装pyhs2,就是装不上,怎么弄?

>pip install pyhs2

Requirement already satisfied: pyhs2 in d:\program files\python\lib\site-packages\pyhs2-0.6.0-py2.7.egg
Collecting sasl (from pyhs2)
  Using cached sasl-0.2.1.tar.gz
Requirement already satisfied: thrift in d:\program files\python\lib\site-packages (from pyhs2)
Requirement already satisfied: six in d:\program files\python\lib\site-packages (from sasl->pyhs2)
Building wheels for collected packages: sasl
  Running setup.py bdist_wheel for sasl ... error
  Complete output from command "D:\Program Files\PYTHON\python.exe" -u -c "import setuptools, tokenize;__file__='c:\\users\\41590\\appdata\\local\\temp\\pip-build-8t7ha6\\sasl\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d c:\users\41590\appdata\local\temp\tmpseioknpip-wheel- --python-tag cp27:
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build\lib.win-amd64-2.7
  creating build\lib.win-amd64-2.7\sasl
  copying sasl\__init__.py -> build\lib.win-amd64-2.7\sasl
  running egg_info
  writing requirements to sasl.egg-info\requires.txt
  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
  warning: manifest_maker: standard file '-c' not found


  reading manifest file 'sasl.egg-info\SOURCES.txt'
  reading manifest template 'MANIFEST.in'
  writing manifest file 'sasl.egg-info\SOURCES.txt'
  copying sasl\saslwrapper.cpp -> build\lib.win-amd64-2.7\sasl
  copying sasl\saslwrapper.h -> build\lib.win-amd64-2.7\sasl
  copying sasl\saslwrapper.pyx -> build\lib.win-amd64-2.7\sasl
  running build_ext
  building 'sasl.saslwrapper' extension
  creating build\temp.win-amd64-2.7
  creating build\temp.win-amd64-2.7\Release
  creating build\temp.win-amd64-2.7\Release\sasl
  C:\Users\41590\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Isasl "-ID:\Program Files\PYTHON\include" "-ID:\Program Files\PYTHON\PC" /Tpsasl/saslwrapper.cpp /Fobuild\temp.win-amd64-2.7\Release\sasl/saslwrapper.obj
  saslwrapper.cpp
  sasl/saslwrapper.cpp(247) : fatal error C1083: Cannot open include file: 'stdint.h': No such file or directory
  error: command 'C:\\Users\\41590\\AppData\\Local\\Programs\\Common\\Microsoft\\Visual C++ for Python\\9.0\\VC\\Bin\\amd64\\cl.exe' failed with exit status 2


  ----------------------------------------
  Failed building wheel for sasl
  Running setup.py clean for sasl
Failed to build sasl
Installing collected packages: sasl
  Running setup.py install for sasl ... error
    Complete output from command "D:\Program Files\PYTHON\python.exe" -u -c "import setuptools, tokenize;__file__='c:\\users\\41590\\appdata\\local\\temp\\pip-build-8t7ha6\\sasl\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record c:\users\41590\appdata\local\temp\pip-9izhfr-record\install-record.txt --single-version-externally-managed --compile:
    running install
    running build
    running build_py
    creating build
    creating build\lib.win-amd64-2.7
    creating build\lib.win-amd64-2.7\sasl
    copying sasl\__init__.py -> build\lib.win-amd64-2.7\sasl
    running egg_info
    writing requirements to sasl.egg-info\requires.txt
    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
    warning: manifest_maker: standard file '-c' not found


    reading manifest file 'sasl.egg-info\SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    writing manifest file 'sasl.egg-info\SOURCES.txt'
    copying sasl\saslwrapper.cpp -> build\lib.win-amd64-2.7\sasl
    copying sasl\saslwrapper.h -> build\lib.win-amd64-2.7\sasl
    copying sasl\saslwrapper.pyx -> build\lib.win-amd64-2.7\sasl
    running build_ext
    building 'sasl.saslwrapper' extension
    creating build\temp.win-amd64-2.7
    creating build\temp.win-amd64-2.7\Release
    creating build\temp.win-amd64-2.7\Release\sasl
    C:\Users\41590\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Isasl "-ID:\Program Files\PYTHON\include" "-ID:\Program Files\PYTHON\PC" /Tpsasl/saslwrapper.cpp /Fobuild\temp.win-amd64-2.7\Release\sasl/saslwrapper.obj
    saslwrapper.cpp
    sasl/saslwrapper.cpp(247) : fatal error C1083: Cannot open include file: 'stdint.h': No such file or directory
    error: command 'C:\\Users\\41590\\AppData\\Local\\Programs\\Common\\Microsoft\\Visual C++ for Python\\9.0\\VC\\Bin\\amd64\\cl.exe' failed with exit status 2


    ----------------------------------------
Command ""D:\Program Files\PYTHON\python.exe" -u -c "import setuptools, tokenize;__file__='c:\\users\\41590\\appdata\\local\\temp\\pip-build-8t7ha6\\sasl\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record c:\users\41590\appdata\local\temp\pip-9izhfr-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in c:\users\41590\appdata\local\temp\pip-build-8t7ha6\sasl\
 类似资料: