I’m trying to install TensorRT 5 from the tar file on Ubuntu 16.04, with CUDA 9.0 and cuDNN 7.3.1. Once I pip installed the wheels file, I tried
in a python shell, but get
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/local/anaconda3/lib/python3.6/site-packages/tensorrt/__init__.py", line 1, in <module> from .tensorrt import * ImportError: /usr/local/anaconda3/lib/python3.6/site-packages/tensorrt/tensorrt.so: undefined symbol: _Py_ZeroStruct
Any idea on how to solve this? I used the tar file instead of the deb file for installation because the deb file always installs in the default python /usr/bin/python instead of the conda one.