I just installed python 3.11 and noticed modules are missing.
I am working on Jetpack 5.0.2 it comes with ubuntu 20.04 and python 3.8.
In python 3.8 I can run
import tensorrt, but in python 3.11 I get
No module named "tensorrt"
python3.8 -m pip freeze > requirements.txt
python3.11 -m pip install -r requirements.txt
But I quickly get:
ERROR: Could not find a version that satisfies the requirement tensorrt==188.8.131.52 (from versions: 0.0.1.dev5, 0.0.1)
ERROR: No matching distribution found for tensorrt==184.108.40.206
Can python 3.11 use python3.8 modules, or do I have to install them with correct distribution?
No, but you can build pybinding for 3.11 on your own.
Please check the document and the steps below:
Thank you @AastaLLL
Thank you, I got it to work
I ended up following your procedure: Tensorrt on Jetson with python 3.9 - #9 by AastaLLL, but with some changes:
- I installed python 3.11 rather than compiled it
(sudo add-apt-repository --yes ppa:deadsnakes/ppa
sudo apt install -y python3.11-minimal)
- I swapped TensorRT 8.0 with 8.4
- I swapped cmake 3.15.5 with 3.25.2
I can now run
import tensorrt in python 3.11
Any tutorial for this to do on windows can someone share the whl file for amd64 python 3.11
I didn’t cross compile.
I compiled on a Jetson Xavier for Jetson Xaviers
So I don’t know of any such tutorial.
This question is not directly for you but thank you for trying to help me im trying to get tensorRT on python 3.11
A Warning for other reading this thread:
Python3.8 is default with Jetpack 5.0.2, manually installing python3.11 and installing libraries has it’s drawback. And might cause you days of work.
E.G. pytorch is not compatible with 3.11
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.