No module name tensorrt in my own environment

Hello all, I am using jetson nano. I checked that It has: tenssort 7.1.3 and cuda 11.0.
But how can I imprort tensorrt in my virtualenv own environment ?
Thanks !!!


Please create virtualenv with --system-site-packages.

For example:

$ virtualenv env --system-site-packages
$ source env/bin/activate
(env) nvidia@nvidia-desktop:~$ python3
Python 3.6.9 (default, Oct  8 2020, 12:12:24) 
[GCC 8.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import tensorrt as trt


1 Like

amazing !!! Thanks you so much !!!