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

install error #5

Open
zkloveai opened this issue Sep 30, 2020 · 2 comments
Open

install error #5

zkloveai opened this issue Sep 30, 2020 · 2 comments

Comments

@zkloveai
Copy link

(zk_mmdet2.4) yyf@zyzn:~/software/torch2trt$ sudo python setup.py install
[sudo] password for yyf:
Traceback (most recent call last):
File "setup.py", line 8, in
from build import build
File "/home/yyf/software/torch2trt/build.py", line 29, in
torch_dir=imp.find_module('torch')[1],
ImportError: No module named torch

I install pytorch already.why ?

@zhiqwang
Copy link

I guess sudo here maybe cause this problem?

@hxyucas
Copy link

hxyucas commented Aug 9, 2022

you should change the build.py in line 28 as torch_dir= 'XX/python3.8/site-packages/torch',,it really works

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

3 participants