AttributeError: type object 'tensorrt.tensorrt.OnnxParser' has no attribute 'create_onnxconfig'

i used tensorrt 6.0 on centos 7.
Detailed error information is as follows:
CustomDatasetDataLoader
dataset [AlignedDataset] was created
Traceback (most recent call last):
File “test.py”, line 58, in
generated = run_onnx(opt.onnx, opt.data_type, minibatch, [data[‘label’], data[‘inst’]])
File “/data/libo/pix2pixHD/run_engine.py”, line 147, in run_onnx
apex = OnnxParser.create_onnxconfig()
AttributeError: type object ‘tensorrt.tensorrt.OnnxParser’ has no attribute ‘create_onnxconfig’