-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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 'mmdet' #6849
Comments
Notice the warning message:
Do not use root to install python package. The default python for the root user is different from the one you use. |
Thank you for your reply. Maybe I should pay attention to that next time when the similar takes place. Besides that, I've also successfully tried another way (dynamic) to solve it, which is just to insert the directory, where this mmdet module is located, to the system path so that it can be found while running. |
Hi, I have encountered similar issue of no module named "mmdet" when I try to import in visual studio code. The environment information is here. Python: 3.8.17 (default, Jul 5 2023, 20:44:21) [MSC v.1916 64 bit (AMD64)]
TorchVision: 0.15.2 |
I got the same problem, too. I fixed it by add Moreover, projects/XDecoder/demo.py may need mmdet/.mim/model-index.yml to run which didn't exist in the dir. I want to run the image caption func of XDecoder. |
I get the same problem, and with you solution, I win, thank you . |
Thanks for your error report and we appreciate it a lot.
Checklist
Describe the bug
I am going to use the repo "https://github.com/VDIGPKU/CBNetV2", which is built based on mmdetection 2.14.0. When I installed all relevant python packages (with their dependencies) according to the mmdetection instructions, and try importing mmdet, the ModuleNotFoundError: No module named 'mmdet' takes place. As a debugging try, I've checked if the mmdet(==2.14.0) is already installed in the environment, which is actually done by using pip show or pip list.
Reproduction
No.
Environment
python mmdet/utils/collect_env.py
to collect necessary environment information and paste it here.$PATH
,$LD_LIBRARY_PATH
,$PYTHONPATH
, etc.)Error traceback
This is the log for installing mmdet==2.14.0
This is the log for checking the presence of mmdet==2.14.0 using pip show.
This is however the error when importing mmdet
Bug fix
If you have already identified the reason, you can provide the information here. If you are willing to create a PR to fix it, please also leave a comment here and that would be much appreciated!
The text was updated successfully, but these errors were encountered: