我正在使用DriverlessAI(使用H2O.ai)并尝试使用记分器(这是一个由DriverlessAI制作的诊断模型),但是发生了错误 .
运行run_tcp_client.sh时,错误“文件”example_client.py“,第5行,来自thrift import Thrift ModuleNotFoundError:没有名为'thrift'的模块” .
在文档(https://www.h2o.ai/wp-content/uploads/2017/09/driverlessai/scoring-package.html)中写道,在运行run_tcp_server.sh之后运行run_tcp_client.sh就足够了 .
我该怎么办?
1 回答
您需要按照链接的documentation安装Thrift:
The following are required in order to run the scoring package. [..] Apache Thrift (to run the TCP scoring service)
:@编辑:
请检查您是否可以运行(在您拥有这些脚本的文件夹中):
如果您得到相同的例外,请运行:
并尝试再次运行脚本 .