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

No module named 'tensorrt' #152

Closed
mathpopo opened this issue Nov 13, 2019 · 8 comments
Closed

No module named 'tensorrt' #152

mathpopo opened this issue Nov 13, 2019 · 8 comments

Comments

@mathpopo
Copy link

git clone https://github.com/NVIDIA-AI-IOT/torch2trt
cd torch2trt
sudo python setup.py install

complete this,run ./test.sh TEST_OUTPUT.md
from .torch2trt import *
ModuleNotFoundError: No module named 'tensorrt'

@bfortuner
Copy link

Remember to download tensorrt first if you haven't, and make sure it's accessible in your python env or virtualenv

https://docs.nvidia.com/deeplearning/sdk/tensorrt-install-guide/index.html

@mathpopo
Copy link
Author

@bfortuner very thanks!it work.

@mathpopo
Copy link
Author

it just entry python folder .python setup.py install

@colorjam
Copy link

@mathpopo Hi, I noticed that you have run sudo python setup.py install, what is that mean just entry python folder .python setup.py install

@shoebNTU
Copy link

Sorry for the naive question. I am facing a similar error. I have successfully installed tensorrt following the steps listed here - https://docs.nvidia.com/deeplearning/sdk/tensorrt-install-guide/index.html (debian installation, verified cuda version and so on, installation succeeds as per the steps listed in the guide up until grp). As far as adding path in environment is concerned, I am setting pythonpath to /usr/lib/python3.6/dist-packages (as per this link - http://www.bojankomazec.com/2019/12/how-to-install-tensorrt-python-package.html). However, the error still persists :(, when trying to import tensorrt. Thanks for your help.

@ganjbakhshali
Copy link

for me this worked:
pip install nvidia-tensorrt

@lqr41710085
Copy link

for me this worked: pip install nvidia-tensorrt

i ran this command and got an error: no space left on device, how can i solve this

@mxsurui
Copy link

mxsurui commented Jul 5, 2022

This package can be installed as:
```
$ pip install nvidia-pyindex
$ pip install nvidia-tensorrt
```

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants