kubo1
September 15, 2020, 7:22am
1
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
Maybe you can reference step 2 (it’s jetson platform)
This needs to be done because the python bindings to tensorrt are available in dist-packages and this folder is usually not visible to your virtualenv. To make them visible we add it to PYTHONPATH .
Thanks!
kubo1
September 23, 2020, 4:50am
3
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!