I want to use tensorRT on python2.7 verticalenv

I want to use tensorRT on python2.7 verticalenv. tensorRT was installed on AGX xavier using jetpack.
I can run tensorRT on the verticalenv of python3.6 by executing the following command.

ln -s /usr/local/lib/python3.6/dist-packages/tensorrt $VIRTUAL_ENV/lib/site-packages/

I want to use tensorRT even with python2.7, so I tried to execute the following command, but I couldn’t.

ln -s /usr/local/lib/python2.7/dist-packages/tensorrt $VIRTUAL_ENV/lib/site-packages/

Because there was no tensorrt folder in /usr/local/lib/python2.7/dist-packages. How can I use tensorRT on python2.7 verticalenv?

Thanks!

Hi @kubo1,
I suppose, the below link should help you

Thanks!

ok. Thanks!
Then, if you want to use tensorRT on virtualenv of python2.7, is it correct that you can execute the following command?

export PATH="/usr/src/tensorrt/bin:$PATH"
export PYTHONPATH=/usr/lib/python2.7/dist-packages:$PYTHONPATH

Thanks!