Python
Jetson
tensorrt
venv
symlink
Using tensorrt in python virtual environment(venv, virtualenv) on jetson
April 19, 2024, 12:14 a.m.
In Jetson Jetpack environment, TensorRT is preinstalled and python wrapper is also installed.
But, If we use python venv, and tries to import tensorrt, the module is not found.
import tensorrt
File "<stdin>", line 1, in <module>
ImportError: No module named 'tensorrt'
In this situation, this problem is resolved by making symlink.
Solution
cd /venv/lib/python3.8/site-packages
ln -s /usr/lib/python3.8/dist-packages/tensorrt tensorrt
Done!
import tensorrt
tensorrt.__version__
'8.5.2.2'
pHqghUme
555
Jan. 22, 2025, 7:33 a.m.
pHqghUme
555
Jan. 22, 2025, 7:33 a.m.
pHqghUme
555
Jan. 22, 2025, 7:33 a.m.
pHqghUme
-1 OR 2+410-410-1=0+0+0+1 --
Jan. 22, 2025, 7:33 a.m.
pHqghUme
-1 OR 2+19-19-1=0+0+0+1
Jan. 22, 2025, 7:33 a.m.
pHqghUme
-1' OR 2+544-544-1=0+0+0+1 --
Jan. 22, 2025, 7:33 a.m.
pHqghUme
-1' OR 2+521-521-1=0+0+0+1 or 'gO9wQ50X'='
Jan. 22, 2025, 7:33 a.m.
pHqghUme
-1" OR 2+575-575-1=0+0+0+1 --
Jan. 22, 2025, 7:33 a.m.
pHqghUme
555*if(now()=sysdate(),sleep(15),0)
Jan. 22, 2025, 7:33 a.m.
pHqghUme
5550'XOR(555*if(now()=sysdate(),sleep(15),0))XOR'Z
Jan. 22, 2025, 7:33 a.m.
pHqghUme
5550"XOR(555*if(now()=sysdate(),sleep(15),0))XOR"Z
Jan. 22, 2025, 7:33 a.m.
pHqghUme
(select(0)from(select(sleep(15)))v)/*'+(select(0)from(select(sleep(15)))v)+'"+(select(0)from(select(sleep(15)))v)+"*/
Jan. 22, 2025, 7:33 a.m.
pHqghUme
555-1; waitfor delay '0:0:15' --
Jan. 22, 2025, 7:33 a.m.
pHqghUme
555-1); waitfor delay '0:0:15' --
Jan. 22, 2025, 7:33 a.m.
pHqghUme
555-1 waitfor delay '0:0:15' --
Jan. 22, 2025, 7:33 a.m.
pHqghUme
555IP5LFI96'; waitfor delay '0:0:15' --
Jan. 22, 2025, 7:33 a.m.
pHqghUme
555-1 OR 232=(SELECT 232 FROM PG_SLEEP(15))--
Jan. 22, 2025, 7:33 a.m.
pHqghUme
555-1) OR 150=(SELECT 150 FROM PG_SLEEP(15))--
Jan. 22, 2025, 7:33 a.m.
pHqghUme
555-1)) OR 473=(SELECT 473 FROM PG_SLEEP(15))--
Jan. 22, 2025, 7:33 a.m.
pHqghUme
5558ARuqJBq' OR 347=(SELECT 347 FROM PG_SLEEP(15))--
Jan. 22, 2025, 7:33 a.m.
pHqghUme
555bXKB4nbz') OR 296=(SELECT 296 FROM PG_SLEEP(15))--
Jan. 22, 2025, 7:33 a.m.
pHqghUme
555sAiwNoE2')) OR 820=(SELECT 820 FROM PG_SLEEP(15))--
Jan. 22, 2025, 7:33 a.m.
pHqghUme
555*DBMS_PIPE.RECEIVE_MESSAGE(CHR(99)||CHR(99)||CHR(99),15)
Jan. 22, 2025, 7:33 a.m.
pHqghUme
555'||DBMS_PIPE.RECEIVE_MESSAGE(CHR(98)||CHR(98)||CHR(98),15)||'
Jan. 22, 2025, 7:33 a.m.
pHqghUme
555
Jan. 22, 2025, 7:33 a.m.
pHqghUme
555'"
Jan. 22, 2025, 7:33 a.m.
pHqghUme
555����%2527%2522\'\"
Jan. 22, 2025, 7:33 a.m.
pHqghUme
@@HQo3O
Jan. 22, 2025, 7:33 a.m.
pHqghUme
555
Jan. 22, 2025, 7:33 a.m.
pHqghUme
555
Jan. 22, 2025, 7:33 a.m.
pHqghUme
555
Jan. 22, 2025, 7:34 a.m.