paddlepaddle serving部署提示 libncurses.so.6: cannot open shared object file: No such file or directory

错误提示

error while loading shared libraries: libncurses.so.6: cannot open shared object file: No such file or directory

出现以上错误需安装TensorRT

https://developer.nvidia.com/nvidia-tensorrt-download

paddlepaddle serving部署提示 libncurses.so.6: cannot open shared object file: No such file or directory_第1张图片

 

为了避免安装时各种问题,我们也可以使用 deb 包的方式安装,即在 2.3 步骤中选择自己系统对应的版本,然后使用如下指令安装

# 首先根据自己下载的版本填写os和tag变量

# 我下载的版本是

nv-tensorrt-repo-ubuntu1804-cuda10.2-trt7.0.0.11-ga-20191216_1-1_amd64.deb

# 得到如下值

os="ubuntu1804"

tag="cuda10.2-trt7.0.0.11-ga-20191216"

sudo dpkg -i nv-tensorrt-repo-${os}-${tag}_1-1_amd64.deb

sudo apt-key add /var/nv-tensorrt-repo-${tag}/7fa2af80.pub

sudo apt-get update

sudo apt-get install tensorrt

sudo apt-get install python-libnvinfer-dev  # for python2

sudo apt-get install python3-libnvinfer-dev  # for python3

sudo apt-get install uff-converter-tf  # for tensorflow

安装完之后运行下边指令

dpkg -l | grep TensorRT

输出如下,表明安装成功

paddlepaddle serving部署提示 libncurses.so.6: cannot open shared object file: No such file or directory_第2张图片

 

你可能感兴趣的:(paddlepaddle,python,tensorflow)