Jetson Nano: PyCUDA & TensorRT Installation Fails Due to Wheel File Issue in 3.8.0 Python

Description

I am trying to install PyCUDA and TensorRT on Jetson Nano, but I am facing issues with wheel files. Even after using the inbuilt TensorRT and SDK setup as well as CUDA and its Toolkit Setup, I cannot install them due to dependency problems.

Environment

TensorRT Version : 8.2.1
GPU Type: NVIDIA GEFORCE RTX 3050 GPU
Nvidia Driver Version: (Not Sure)
CUDA Version: 10.2
CUDNN Version: (Check using dpkg -l | grep cudnn)
Operating System + Version: UBUNTU 20.02
Python Version (if applicable): 3.8.0
TensorFlow Version (if applicable):
PyTorch Version (if applicable): (Error during installation)
Baremetal or Container (if container which image + tag):

Relevant Files

Steps To Reproduce

1️⃣ Commands Used

sudo apt update
sudo apt install -y python3-pip python3-dev python3-setuptools python3-wheel python3-numpy
python3 -m pip install --upgrade pip setuptools wheel
pip install pycuda
pip install tensorrt

ERROR: Build Wheel on output
What I Have Tried:
sudo apt invcc --version
install python3-pycuda
python3 -m pip install --upgrade pip setuptools wheel
❌ Still facing wheel file issue when installing PyCUDA and TensorRT.
![WhatsApp Image 2025-03-03 at 21.47.26|664x500](upload://8D15doel7TU7qW95FfHsEBlGBwi.jpeg)
Because of this error i can't run my Best.engine file.
jetpack version : 4.6.1
Help me To solve the problem from Scratch