Mmdet error modulenotfounderror: no module named ‘mmcv_ ext‘

problem : when installing MMMCV, ModuleNotFoundError: No module named ‘MMCV._ext’ problem often occurs.
environment : ubuntu16.04+Anaconda3+python3.7.7+cuda10.0+cuDNN7.6.4.3

solution : do not use :

when installing

pip install mmcv

use:

pip install mmcv-full

use the MMCV version that is appropriate for your environment if you have weird problems, such as

pip install mmcv-full==latest+torch1.5.0+cu101 -f https://openmmlab.oss-accelerate.aliyuncs.com/mmcv/dist/index.html

can be viewed on MMCV’s github description, as follows:

https://github.com/open-mmlab/mmcv

more questions on the official github.

Read More: