Xharlie / BtcDet

Behind the Curtain: Learning Occluded Shapes for 3D Object Detection
Apache License 2.0
194 stars 43 forks source link

ModuleNotFoundError: No module named 'torch' Error when trying to run setup.py #6

Closed sekomer closed 2 years ago

sekomer commented 2 years ago

Hi, I've done every step before this and they all works.

When I try to run sudo python3 setup.py develop it returns no module named torch error but torch is installed and it works. How can I fix this problem.

Thanks in advance

sekomer commented 2 years ago

I found that when you run sudo python3 it can't find some packages. If any of you have this problem the solution is sudo -E python3 setup.py develop. I hope it helps :)