为了使用python3.5.1连接到hive,我可以安装pyhs2、thrift和pyhive。但是在安装phyhs2需要的sasl时,出现了这个错误。
running install
running build
running build_py
creating build
creating build\lib.win32-3.5
creating build\lib.win32-3.5\sasl
copying sasl\__init__.py -> build\lib.win32-3.5\sasl
running egg_info
writing dependency_links to sasl.egg-info\dependency_links.txt
writing top-level names to sasl.egg-info\top_level.txt
writing sasl.egg-info\PKG-INFO
writing requirements to sasl.egg-info\requires.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.win32-3.5\sasl
copying sasl\saslwrapper.h -> build\lib.win32-3.5\sasl
copying sasl\saslwrapper.pyx -> build\lib.win32-3.5\sasl
running build_ext
building 'sasl.saslwrapper' extension
error: Unable to find vcvarsall.bat
----------------------------------------
Command "c:\users\mmt6168\appdata\local\programs\python\python35-32\python.exe -
u -c "import setuptools, tokenize;__file__='C:\\Users\\mmt6168\\AppData\\Local\\
Temp\\pip-build-qvb3rz0y\\sasl\\setup.py';exec(compile(getattr(tokenize, 'open',
open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --rec
ord C:\Users\mmt6168\AppData\Local\Temp\pip-irc4xc0f-record\install-record.txt -
-single-version-externally-managed --compile" failed with error code 1 in C:\Use
rs\mmt6168\AppData\Local\Temp\pip-build-qvb3rz0y\sasl\
1条答案
按热度按时间uqjltbpv1#
python正在努力寻找一个c编译器来匹配用于编译python for windows版本的编译器。对于windows上的python3.5,需要visualc14.0。此版本的快速修复程序是安装VisualStudioCommunity2015。
否则,请参见此处:https://wiki.python.org/moin/windowscompilers#microsoft_visual_c.2b-.2b-\u 14.0\u独立版:\u visual c.2b-.2b-\u build\u tools\u 2015\u28x86.2c\u x64.2c\u arm.29