Python3安装impala
2024-09-06 10:16:22
步骤:
1.安装Visual C++,目前最新是2019版
安装工作负载c++桌面开发
2.pip3安装模块
pip3 install pure-sasl==0.5.
pip3 install thrift-sasl==0.2. --no-deps
pip3 install thrift==0.9.
pip3 install impyla==0.14.
pip3 install bitarray==0.8.
pip3 install thriftpy==0.3.
安装时报错:
# TypeError: can't concat str to bytes
3.改错
编辑 python安装目录/site-packages/thrift_sasl/__init__.py
# 定位到错误的最后一条,在init.py第94行 (注意代码的缩进)
header = struct.pack(">BI", status, len(body))
self._trans.write(header + body)
更改为:
header = struct.pack(">BI", status, len(body))
if(type(body) is str):
body = body.encode()
self._trans.write(header + body)
4.重新pip安装
最新文章
- ORA-14450: attempt to access a transactional temp table already in use
- DB2 create partitioned table
- 31. Flatten Binary Tree to Linked List
- PetaPoco模糊查询
- Eclipse支持Jquery代码提示(JqeuryWTP)
- A*算法的实现
- NSSpeechSynthesizer 文字变语音
- 7个热门开源PHP框架
- Linux中的小程序—— 进度条
- Hibernate查询、连接池、二级缓存
- (三)Lua脚本语言入门
- 计算机 计算机语言 常见的DOS命令
- (转)JAVA反射机制理解
- scrapy初试水 day03(递归调用)
- 前端测试框架Jest系列教程 -- Mock Functions
- 一个简易的kmp教学并给出java实现
- Command ";python setup.py egg_info"; failed with error code 1 in c:\users\w5659\appdata\local\temp\pip-build-fs2yzl\ipython\
- json序列化NULL
- js异步处理历程
- 对B+树,B树,红黑树的理解