From e244a69209362db0a5418bbac21b43d41dd6e274 Mon Sep 17 00:00:00 2001 From: HexToString <506181616@qq.com> Date: Mon, 14 Dec 2020 11:03:33 +0000 Subject: [PATCH] fix doc/compile and python/examples/encryption/get_data.sh by HexToString --- doc/COMPILE.md | 4 +++- doc/COMPILE_CN.md | 4 ++++ python/examples/encryption/get_data.sh | 2 ++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/doc/COMPILE.md b/doc/COMPILE.md index fe8325a7..31affdf0 100644 --- a/doc/COMPILE.md +++ b/doc/COMPILE.md @@ -178,12 +178,14 @@ make ## Install wheel package Regardless of the client, server or App part, after compiling, install the whl package in `python/dist/` in the temporary directory(`server-build-cpu`, `server-build-gpu`, `client-build`,`app-build`) of the compilation process. - +for example:cd server-build-cpu/python/dist && pip install -U xxxxx.whl ## Note When running the python server, it will check the `SERVING_BIN` environment variable. If you want to use your own compiled binary file, set the environment variable to the path of the corresponding binary file, usually`export SERVING_BIN=${BUILD_DIR}/core/general-server/serving`. +BUILD_ DIR is the absolute path of server build CPU or server build GPU。 +for example: cd server-build-cpu && export SERVING_BIN=${PWD}/core/general-server/serving diff --git a/doc/COMPILE_CN.md b/doc/COMPILE_CN.md index 3462191c..0a31cb1b 100644 --- a/doc/COMPILE_CN.md +++ b/doc/COMPILE_CN.md @@ -173,12 +173,16 @@ make ## 安装wheel包 无论是Client端,Server端还是App部分,编译完成后,安装编译过程临时目录(`server-build-cpu`、`server-build-gpu`、`client-build`、`app-build`)下的`python/dist/` 中的whl包即可。 +例如:cd server-build-cpu/python/dist && pip install -U xxxxx.whl + ## 注意事项 运行python端Server时,会检查`SERVING_BIN`环境变量,如果想使用自己编译的二进制文件,请将设置该环境变量为对应二进制文件的路径,通常是`export SERVING_BIN=${BUILD_DIR}/core/general-server/serving`。 +其中BUILD_DIR为server-build-cpu或server-build-gpu的绝对路径。 +可以cd server-build-cpu路径下,执行export SERVING_BIN=${PWD}/core/general-server/serving diff --git a/python/examples/encryption/get_data.sh b/python/examples/encryption/get_data.sh index fd7865f9..d1e97727 100644 --- a/python/examples/encryption/get_data.sh +++ b/python/examples/encryption/get_data.sh @@ -1,2 +1,4 @@ wget --no-check-certificate https://paddle-serving.bj.bcebos.com/uci_housing_example/encrypt.tar.gz tar -xzf encrypt.tar.gz +cp -rvf ../fit_a_line/uci_housing_model . +cp -rvf ../fit_a_line/uci_housing_client . -- GitLab