How to link tensorrt to a virtualenv

I have TensorRT installed in system level (installed from .deb file) and installed Tensorflow in a virtual environment using pip. But Tensorflow complains for missing TensorRT whenever I import tensorflow in my python app.

Is it possible to link tensorrt (installed in system level) in a venv without reinstalling in venv (using - pip install tensorrt)? I’m asking it because, tensorrt does a redundant installation of CUDA and cuDNN libs too in the venv if installed from pip.

Please refer to the installation steps from the below link if in case you are missing on anything

Also, we suggest you to use TRT NGC containers to avoid any system dependency related issues.