步骤:

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安装

最新文章

  1. ORA-14450: attempt to access a transactional temp table already in use
  2. DB2 create partitioned table
  3. 31. Flatten Binary Tree to Linked List
  4. PetaPoco模糊查询
  5. Eclipse支持Jquery代码提示(JqeuryWTP)
  6. A*算法的实现
  7. NSSpeechSynthesizer 文字变语音
  8. 7个热门开源PHP框架
  9. Linux中的小程序—— 进度条
  10. Hibernate查询、连接池、二级缓存
  11. (三)Lua脚本语言入门
  12. 计算机 计算机语言 常见的DOS命令
  13. (转)JAVA反射机制理解
  14. scrapy初试水 day03(递归调用)
  15. 前端测试框架Jest系列教程 -- Mock Functions
  16. 一个简易的kmp教学并给出java实现
  17. Command "python setup.py egg_info" failed with error code 1 in c:\users\w5659\appdata\local\temp\pip-build-fs2yzl\ipython\
  18. json序列化NULL
  19. js异步处理历程
  20. 对B+树,B树,红黑树的理解

热门文章

  1. 转载-C语言中<<、>>、&、|的实际用途
  2. freemarker从入门到精通
  3. 基于STM32F429,Cubemx的SDHC卡的基本Fatfs文件移植
  4. 每秒100W请求,12306秒杀业务,架构如何优化?
  5. Android 列表对话框 使用数组
  6. MySQL数据篇(八)-- 存储过程的简单实现
  7. MySQL的基础架构
  8. React 组件传值 父传递儿子
  9. SpringCloud学习笔记(二、SpringCloud Config)
  10. Java之Scanner类