mmocr: ModuleNotFoundError: No module named 'mmcv._ext'
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'
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 16
Thanks for the detailed log. It’s probably because of the wrongly cached
mmcv-fullMake sure you have cleared the cache before installing
mmcv-full: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
Creating Conda environment
conda create -n open-mmlab python=3.7 -y conda activate open-mmlabInstalling pytorch and torchvision
pip install torch==1.10.0+cu113 torchvision==0.11.0+cu113 -f https://download.pytorch.org/whl/torch_stable.htmlAfter this installing mmcv-fullpip install mmcv-full -f https://download.openmmlab.com/mmcv/dist/cu113/torch1.10.0/index.htmlpip install mmdetcd mmocrpip install -r requirements.txtpip install -v -e .After this running script in spyder
Output
Please uninstall
mmcvand installmmcv-fullfollowing the installation instructions