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

ModuleNotFoundError: No module named 'cuda' #3856

Open
sssssshf opened this issue May 11, 2024 · 2 comments
Open

ModuleNotFoundError: No module named 'cuda' #3856

sssssshf opened this issue May 11, 2024 · 2 comments
Labels
triaged Issue has been triaged by maintainers

Comments

@sssssshf
Copy link

Description

Environment

TensorRT Version:

NVIDIA GPU:

NVIDIA Driver Version:

CUDA Version:

CUDNN Version:

Operating System:

Python Version (if applicable):

Tensorflow Version (if applicable):

PyTorch Version (if applicable):

Baremetal or Container (if so, version):

Relevant Files

Model link:

Steps To Reproduce

Commands or scripts:

Have you tried the latest release?:

Can this model run on other frameworks? For example run ONNX model with ONNXRuntime (polygraphy run <model.onnx> --onnxrt):

@sssssshf
Copy link
Author

ModuleNotFoundError: No module named 'cuda'

when i run
TensorRT-release-10.0/samples/python/efficientnet/infer.py
how to install that libs ?

@lix19937
Copy link

Maybe your cuda not install right.
Use follow cmd

python -c "from cuda import cuda;print(cuda.CUresult.CUDA_SUCCESS)"
python -c "from cuda import cudart;print(cudart.cudaMalloc(10))"   

@zerollzeng zerollzeng added the triaged Issue has been triaged by maintainers label May 17, 2024
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

3 participants