onnx-tensorrt: python wrapper error

Specs are: TensorRT-3.0.4 Output of step: python setup.py build

In file included from nv_onnx_parser_bindings_wrap.cpp:3867:0:
NvOnnxParser.h:26:21: fatal error: NvInfer.h: No such file or directory
compilation terminated.
error: command 'gcc' failed with exit status 1

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 22

Most upvoted comments

@Edwardf0t1 use debian installation and set the DTENSORRT_ROOT=/usr/lib/x86_64-linux-gnu, but please make sure you already installed cuda by debian correctly.

If you installed tensorrt by tar file, you have to modify setup.py file and include your tensorrt directory to INC variable. hope this can help you.

I have already fixed this problem. Thank you very much! @yinghai