记录一下吧!
走了好多弯路
安装完tensorrt一定要将放入虚拟环境(如果用虚拟环境的话)
Post-installation actions (Important!!!)
Open a terminal
Copy TensorRT libraries to virtual environment libraries
$ cp /usr/lib/python3.5/dist-packages/ -r ~/tensorflow/venv/lib/python3.5/site-packages/
Verify
$ source ~/tensorflow/venv/bin/activate
(venv) $ python
help(‘modules’)