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

Not able to install tensorrt in python 3.12 #3860

Closed
manswad opened this issue May 13, 2024 · 4 comments
Closed

Not able to install tensorrt in python 3.12 #3860

manswad opened this issue May 13, 2024 · 4 comments
Assignees
Labels
triaged Issue has been triaged by maintainers

Comments

@manswad
Copy link

manswad commented May 13, 2024

Description

Environment

TensorRT Version:10.0.1

NVIDIA GPU:RTX 4060 Laptop

NVIDIA Driver Version:535.171.04

CUDA Version:12.2

CUDNN Version:9.1.1

Operating System:Ubuntu 24.04 LTS

Python Version (if applicable):3.12.3

Tensorflow Version (if applicable):2.16.1

PyTorch Version (if applicable):N/A

Baremetal or Container (if so, version):

Relevant Files

Steps To Reproduce

sudo apt install tensorrt (After doing all formalities)

Traceback report

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
python3-libnvinfer : Depends: python3 (< 3.11) but 3.12.3-0ubuntu1 is to be installed
python3-libnvinfer-dispatch : Depends: python3 (< 3.11) but 3.12.3-0ubuntu1 is to be installed
python3-libnvinfer-lean : Depends: python3 (< 3.11) but 3.12.3-0ubuntu1 is to be installed
E: Unable to correct problems, you have held broken package

s.

Commands or scripts:sudo apt install tensorrt

Have you tried the latest release?:yes

@zerollzeng
Copy link
Collaborator

Looks like the required python version is not as new as the one your package manager provided, you can install tensorrt by using the deb package, and then install the python package manually.

@zerollzeng zerollzeng self-assigned this May 17, 2024
@zerollzeng zerollzeng added the triaged Issue has been triaged by maintainers label May 17, 2024
@manswad
Copy link
Author

manswad commented May 17, 2024

Looks like the required python version is not as new as the one your package manager provided, you can install tensorrt by using the deb package, and then install the python package manually.

I have now switched to windows and installed tensorflow 2.10. It works

@zerollzeng
Copy link
Collaborator

Glad to see that, can we close this?

@manswad
Copy link
Author

manswad commented May 19, 2024

Glad to see that, can we close this?

Ya sure

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triaged Issue has been triaged by maintainers
Projects
None yet
Development

No branches or pull requests

2 participants