pip install impyla==0.14.1pip install pure_sasl==0.5.1pip install thriftpy==0.3.9pip install thrift-sasl==0.2.1pip install thrift
pip install bitarray
1、报错:thriftpy.parser.exc.ThriftParserError: ThriftPy does not support generating module with path in protocol 'c'
解决:
将 C:\Python27\Lib\site-packages\thriftpy\parser\parser.py , line 488
if url_scheme == '':
改为:
if len(url_scheme) <= 1:
2、报错:TypeError: can't concat str to bytes
定位到错误的最后一条,在init.py第94行(标黄的部分)
header = struct.pack(">BI", status, len(body))
#按照网上的提供的办法增加对BODY的处理
if (type(body) is str):
body = body.encode()
self._trans.write(header + body)
self._trans.flush()
python中第三方库whl文件下载地址: https://www.lfd.uci.edu/~gohlke/pythonlibs/