thrfit.exe 需要配置环境变量,百度很多方法。 需要安装thrift的lib 去官网下载tar.gz 解压后进入 lib/py 目录 安装命令 python setup.py install 再运行就没有异常了