tensorRT import error

I installed cuda10/cudnn7.3.1 and followed the instructions in tensorRT installation guide.
But when i do “import tensorrt” it reports error :“from .tensorrt import * \ lib/python3.6/site-packages/tensorrt/tensorrt.so: undefined symbol: _Py_ZeroStruct”
I also tried python 2.7 and python 3.5, the problem is still there…
Can anybody help me plz…


This seems like a python installation/configuration issue.

Can you make sure you’re using Python and the TensorRT you have installed are for that version?

$ python --version