Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tensorrt not working and not able to install in the 4.6 image #27

Open
AINacster opened this issue Mar 29, 2023 · 6 comments
Open

Tensorrt not working and not able to install in the 4.6 image #27

AINacster opened this issue Mar 29, 2023 · 6 comments

Comments

@AINacster
Copy link

Tensortrt does not work. I am trying to run simple code in python3 -
import tensorrt as trt
trt.version

Also have issues in installing onnx and onnxsim modules with this image.

Can someone help me on this.

@Qengineering
Copy link
Owner

Qengineering commented Mar 29, 2023

Try

$ python3
>>> import tensorrt as trt
>>> trt.__version__
'8.0.1.6'

@AINacster
Copy link
Author

with the image tensorrt doesnt work. It says could not find the module tensorrt.

@Qengineering
Copy link
Owner

@AINacster,

Just flashed a new SD card with the original image. There is nothing wrong with TensorRT.
Please check the command below. You should have the same output.
Screenshot from 2021-11-26 14-10-46

@AINacster
Copy link
Author

Iam using YoloV8 model for detection/inference. This requires python 3.8 and in Python3.8 if I call for Tensorrt it does not appear. It gives error saying tensorrt not found.

With 3.6 it works fine. It shows TensorRT 8.0.0.1

Let me know if I am not clear. Thanks.

@Qengineering
Copy link
Owner

That's clear now.
Probably, you have installed Python 3.8 along Python 3.6.
That's the root of all evil. Two Python versions is screaming for issue you facing now.
Better to use the Jetson Nano Ubuntu 20.04 version with a native Python 3.8 on board.

@AINacster
Copy link
Author

I have used QEngineering 20.04 image. It comes with native Python 3.8 on board. I did install Python 3.8.
We should look at building appropriate TensortRT version with this image.
I also want to install ONNX and ONNXSIM on it. Confronted lot of issues with version.
Maybe one complete list of all packages can be great.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants