ModuleNotFoundError: No module named 'mmcv._ext'

See original GitHub issue

I tried all possible way explained in this thread. Still i am getting same error. Here are specs i am working on: OS: Windows 10 ±----------------------------------------------------------------------------+ | NVIDIA-SMI 496.49 Driver Version: 496.49 CUDA Version: 11.5 | |-------------------------------±---------------------±---------------------+

Torch-1.11.0+cu115 torch.cuda.is_available()) - True Torchvision - 0.12.0+cu115 mmdet.version - 2.22.0

ModuleNotFoundError: No module named 'mmcv._ext'

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:16 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
gaotongxiaocommented, Mar 15, 2022

Thanks for the detailed log. It’s probably because of the wrongly cached mmcv-full

Collecting mmcv-full
  Using cached mmcv_full-1.4.6-py2.py3-none-any.whl

Make sure you have cleared the cache before installing mmcv-full:

pip cache dir  # to get the path to the pip cache
rmdir PATH_TO_PIP_CACHE
pip uninstall mmcv-full
pip install mmcv-full -f https://download.openmmlab.com/mmcv/dist/cu113/torch1.10.0/index.html
1reaction
gaotongxiaocommented, Mar 15, 2022

Seems like a scipy’s feature that imports MMOCR twice. You can try disabling it https://stackoverflow.com/questions/46485628/avoid-reloaded-modules-module-name-message-in-python

Read more comments on GitHub >

github_iconTop Results From Across the Web

ModuleNotFoundError: No module named 'mmcv._ext' #3271
I was getting ModuleNotFoundError: No module named 'mmcv.ops', so I tried installing mmcv==0.6.2 and mmdet==2.2.1, but then I got the error, ...
Read more >
MMCV Installation — MMDetection 2.11.0 documentation
Compatibility issue between MMCV and MMDetection; “ConvWS is already registered in conv layer”; ... “No module named 'mmcv.ops'”; “No module named 'mmcv.
Read more >
ModuleNotFoundError: No module named 'mmcv._ext'
An article in Eric A. Scuccimarra's blog titled ModuleNotFoundError: No module named 'mmcv._ext'
Read more >
ModuleNotFoundError: No module named 'mmcv._ext'解决方案
一、问题描述使用目标检测开源MMDetection时,出现如下报错:ModuleNotFoundError: No module named 'mmcv._ext'二、问题分析.
Read more >
ViTPose - a Hugging Face Space by Gradio-Blocks
Found existing installation: mmcv-full 1.5.0 Uninstalling ... _gcd_import(name[level:], package, level) ModuleNotFoundError: No module named 'mmcv._ext'
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found