Im trying to set up a virtual Network on the Jetson Nano using Miniforge.
I am trying to install the package “torch2trt” but therefore need the package “tensorRT”.
Now I have updated my Jetpack version to v4.4.1.
My goal is to make: “python3 -c “import tensorrt”” work but i always get the Error:
So it seems to me that i have TensorRT v7.1.3 installed but cannot import it.
I am sorry if this is a stupid rookie mistake, but it has puzzled me for a long time now…
If someone could give me a hint on how to fix my problem i would be really glad.
Just for the Record:
My sys.path was not looking for tensorrt in the right location.
(You can see where sys.path looks for importable Packages with: “import sys sys.path” in Python)
I therefore had to either:
Put the TensorRT Folder in one of the sys.path’s
add the location of TensorRT to sys.path by: “export PYTHONPATH=/usr/lib/python3.6/dist-packages:$PYTHONPATH” in Terminal (Note: my TensorRT package was located at /usr/lib/python3.6/dist-packages)