diff --git a/README.md b/README.md index c1f066dece0bc7de8a3f43c4d5c1b9e43acd3978..44cee7bac8087a60e08754f007ad33bdebad98e3 100644 --- a/README.md +++ b/README.md @@ -48,7 +48,7 @@ nvidia-docker exec -it test bash pip install paddle-serving-client==0.3.2 pip install paddle-serving-server==0.3.2 # CPU pip install paddle-serving-server-gpu==0.3.2.post9 # GPU with CUDA9.0 -pip install paddle-serving-server-gpu==0.3.2.post10 # GPU with CUDA9.0 +pip install paddle-serving-server-gpu==0.3.2.post10 # GPU with CUDA10.0 ``` You may need to use a domestic mirror source (in China, you can use the Tsinghua mirror source, add `-i https://pypi.tuna.tsinghua.edu.cn/simple` to pip command) to speed up the download. diff --git a/doc/LATEST_PACKAGES.md b/doc/LATEST_PACKAGES.md index dca3d2357d9086f26c1ff99d72fbf3656d80fe47..247c04c000404944e7021093ff8bf3280c2f2539 100644 --- a/doc/LATEST_PACKAGES.md +++ b/doc/LATEST_PACKAGES.md @@ -36,6 +36,10 @@ https://paddle-serving.bj.bcebos.com/whl/paddle_serving_client-0.0.0-cp37-none-a ``` https://paddle-serving.bj.bcebos.com/whl/paddle_serving_client-0.0.0-cp36-none-any.whl ``` +### Python 3.5 +``` +https://paddle-serving.bj.bcebos.com/whl/paddle_serving_client-0.0.0-cp35-none-any.whl +``` ### Python 2.7 ``` https://paddle-serving.bj.bcebos.com/whl/paddle_serving_client-0.0.0-cp27-none-any.whl diff --git a/python/setup.py.client.in b/python/setup.py.client.in index bcedc41599399762b4b838b6d89eb7adaef23800..196ff6c56b0dc049e3f2b27368f2a08de74b5c09 100644 --- a/python/setup.py.client.in +++ b/python/setup.py.client.in @@ -30,15 +30,17 @@ py_version = sys.version_info def copy_lib(): if py_version[0] == 2: lib_list = ['libpython2.7.so.1.0', 'libssl.so.10', 'libcrypto.so.10'] + elif py_version[1] == 5: + lib_list = ['libpython3.5m.so.1.0', 'libssl.so.10', 'libcrypto.so.10'] elif py_version[1] == 6: lib_list = ['libpython3.6m.so.1.0', 'libssl.so.10', 'libcrypto.so.10'] elif py_version[1] == 7: lib_list = ['libpython3.7m.so.1.0', 'libssl.so.10', 'libcrypto.so.10'] os.popen('mkdir -p paddle_serving_client/lib') for lib in lib_list: - r = os.popen('whereis {}'.format(lib)) + r = os.popen('which {}'.format(lib)) text = r.read() - os.popen('cp {} ./paddle_serving_client/lib'.format(text.strip().split(' ')[1])) + os.popen('cp {} ./paddle_serving_client/lib'.format(text.strip())) max_version, mid_version, min_version = util.python_version()