I have Ubuntu 20, CUDA 11.1, and TensorRT 7.2.0 which I downloaded from here: https://developer.nvidia.com/nvidia-tensorrt-7x-download
When I try import tensorrt as trt
, I get:
no module named tensorrt
When I tried sudo apt-get install python3-libnvinfer-dev
it says
python3-libnvinfer-dev is not going to be installed. Unable to correct problems, you have held broken packages
When I tried
python3.8 -m pip install tensorrt-7.2.0.14-cp37-none-linux_x86_64.whl
(because that whl file is in the TensorRT-7.2.0.14/python
folder from the TensorRT I downloaded), it says
ERROR: tensorrt-7.2.0.14-cp37-none-linux_x86_64.whl is not a supported wheel on this platform
and when I try
sudo pip3 install tensorrt-*-cp3x-none-linux_x86_64.whl
I also get the not supported wheel on this platform
error
Can anyone help?