-
Notifications
You must be signed in to change notification settings - Fork 23
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
Install tenosrrt for python3.8 in Jetson Xavier NX #6
Comments
Could you share the commands you've run so far, as well as the output of running |
The python3-libnvinfer only works with python3.6. There are some discussion here: https://forums.developer.nvidia.com/t/python-binding-not-found-for-tensorrt/76408. It looks like the python3.8 binding needed to created with manual binding |
Hi @zhr01 , have you solved the problem? I followed the instruction to set up the environment for testing on Jetson AGX Xavier, everything went fine for running the script I noticed that in 'install_xavier_dependencies.sh' python3.8 was installed and set as the default version of python3, but python3.8 could not import 'tensorrt'. I tried to "import tensorrt" with python3.6 and no error occurred. So @nvitramble , do I miss something in the official instruction? Should I manually compile & build the .whl for using tensorrt with python3.8? What's more, I check the instruction of build the python binding, and find that I can not find the 'PyConfig.h' file for python3.8 (on aarch64) according to the link NVIDIA provided in this section 'Add PyConfig.h'. How can I build the binding for python3.8? |
@Treemann It looks like we are banging our heads against the same wall and at the same time! FWIW, I've tried to take |
Hi @psyhtest I could find the 'PyConfig.h' on the location where Python3.8 was installed. I built the 'python binding' for Python3.8 successfully and finally could run the script for testing. (FYI: I tried with the code for MLPerf v1.1) |
@Treemann, that's great to hear! I was beginning to suspect that something else was wrong. I'll give it another try. |
@yzh89 Please try these instructions (copying and pasting the whole block should work). |
@psyhtest well done. But followed by a segfault on "reate_network" as blow:
output
|
May caused by the mismatch between tensorrt python API and tensorrt.so? |
I try to achive the result in Nvidia Jetson Xavier NX. After setup up the environment, I got the fllowing error message:
then I check the environment, found the tensorrt not in my python3.8 env, so how can I install tensorrt for python3.8
The text was updated successfully, but these errors were encountered: