Python Windows pyhs2下模块安装

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/bigdataf/article/details/78479331

错误代码:

C:\Python27\Scripts>pip2.7.exe  install pyhs2
Collecting pyhs2
  Using cached pyhs2-0.6.0.tar.gz
Collecting sasl (from pyhs2)
  Using cached sasl-0.2.1.tar.gz
Collecting thrift (from pyhs2)
  Using cached thrift-0.10.0.zip
Requirement already satisfied: six in c:\users\fan.weitai\appdata\roaming\python\python27\site-packages (from sasl->pyhs2)
Installing collected packages: sasl, thrift, pyhs2
  Running setup.py install for sasl ... error
    Complete output from command c:\python27\python.exe -u -c "import setuptools, tokenize;__file__='c:\\users\\fan~1.wei\\appdata\\local\\temp\\pip-build-bqyvyd\\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\fan~1.wei\appdata\local\temp\pip-imx4rl-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\fan.weitai\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.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\\fan.weitai\\AppData\\Local\\Programs\\Common\\Microsoft\\Visual C++ for Python\\9.0\\VC\\Bin\\amd64\\cl.exe' failed with exit status 2

for what?

aslwrapper.cpp
    sasl/saslwrapper.cpp(247) : fatal error C1083: Cannot open include file: 'stdint.h':

尝试安装:
pip install thrift_sasl or pip install sasl
安装pip install sasl 错误复现

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

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

展开阅读全文

没有更多推荐了,返回首页