paddle-serving-client源码问题
Created by: omtbreak
paddle-serving-client源码中,调用了.serving_client中的PredictorClient
def load_client_config(self, path):
from .serving_client import PredictorClient
from .serving_client import PredictorRes
model_conf = m_config.GeneralModelConfig()
f = open(path, 'r')
model_conf = google.protobuf.text_format.Merge(
str(f.read()), model_conf)
但在使用客户端代码报ImportError
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/paddle_serving_client/serving_client.so, 2): no suitable image found. Did find:
查找发现,通过pip3安装的paddle-serving-client中,没有serving_client.py文件,只有serving_client.so