-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Windows下mmcv中importlib.import_module('mmcv.'_ext )报错ImportError: DLL load failed: 找不到指定的模块。 #1569
Comments
It seems like that you do not install mmcv-full. Please provide the output of |
this is the pip list: Package Version Location addict 2.4.0 |
What command did you use to install mmcv-full? |
pip install mmcv-full -f https://download.openmmlab.com/mmcv/dist/cu102/torch1.10.0/index.html It comes from OpenMMLab知乎(https://zhuanlan.zhihu.com/p/441653536) |
What is your python version? |
python3.7 from miniconda |
I installed my environment using these commands. |
Ok, thanks for your report. I will try to re-produce the exception. |
Also thank you very much for your help. |
Hi @Baiyixuan1113 , there are several inconsistencies
|
Ok, I will try again according to the version you provided. |
The correct command to install mmcv-full is |
Sorry for the late reply. I adjusted mmcv-full according to the method you said, and it worked. |
Will python version 3.6 have any impact? |
Hi @123456klk1 , did you meet the same error? |
i met the same error, can you help me? @zhouzaida |
@wen0418 hello,I don't know if you have solved the error. I met the same error when I install mmcv. I search the solution and find it. I hope it can help you if you have not solved the error. I use python3.8 pillow 9.3.0, but python3.8 should use 6.2.1. I use "pip uninstall pillow" and "pip install pillow==6.2.1" solve the question. |
@zhouzaida ,Hi, I have smae issues. Can you check my version is appropriate or not? Thank you in advance. |
version:
Windows 10
VS2015
cuda 10.1
python 3.7
pytorch 1.6.0
torchvision 0.7.0
mmcv 1.4.0
mmdetection 2.18.0
mmocr 0.3.0
(There are no errors in install mmcv, build mmdet, build mmocr)
when i tried to train the maskrcnn for textdet from mmocr, but i got this ImportError.
cmd: python tools/train.py configs/textdet/maskrcnn/mask_rcnn_r50_fpn_160e_icdar2017.py
details: Traceback (most recent call last):
File "tools/train.py", line 17, in
from mmocr.apis import train_detector
File "e:\mmlab\mmocr-0.3.0\mmocr\apis_init_.py", line 2, in
from .inference import init_detector, model_inference
File "e:\mmlab\mmocr-0.3.0\mmocr\apis\inference.py", line 7, in
from mmcv.ops import RoIPool
File "D:\Miniconda3\envs\mmlab\lib\site-packages\mmcv\ops_init_.py", line 2, in
from .assign_score_withk import assign_score_withk
File "D:\Miniconda3\envs\mmlab\lib\site-packages\mmcv\ops\assign_score_withk.py", line 6, in
'ext', ['assign_score_withk_forward', 'assign_score_withk_backward'])
File "D:\Miniconda3\envs\mmlab\lib\site-packages\mmcv\utils\ext_loader.py", line 14, in load_ext
ext = importlib.import_module('mmcv.' + name)
File "D:\Miniconda3\envs\mmlab\lib\importlib_init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ImportError: DLL load failed: 找不到指定的模块。
and i tried again in mmdet, train maskrcnn, got this Error again.
cmd: python tools/train.py configs\mask_rcnn\mask_rcnn_r50_fpn_1x_coco.py
Traceback (most recent call last):
File "tools/train.py", line 16, in
from mmdet.apis import set_random_seed, train_detector
File "e:\mmlab\mmdetection-2.18.0\mmdet\apis_init_.py", line 2, in
from .inference import (async_inference_detector, inference_detector,
File "e:\mmlab\mmdetection-2.18.0\mmdet\apis\inference.py", line 7, in
from mmcv.ops import RoIPool
File "D:\Miniconda3\envs\mmlab\lib\site-packages\mmcv\ops_init_.py", line 2, in
from .assign_score_withk import assign_score_withk
File "D:\Miniconda3\envs\mmlab\lib\site-packages\mmcv\ops\assign_score_withk.py", line 6, in
'ext', ['assign_score_withk_forward', 'assign_score_withk_backward'])
File "D:\Miniconda3\envs\mmlab\lib\site-packages\mmcv\utils\ext_loader.py", line 14, in load_ext
ext = importlib.import_module('mmcv.' + name)
File "D:\Miniconda3\envs\mmlab\lib\importlib_init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ImportError: DLL load failed: 找不到指定的模块。
The text was updated successfully, but these errors were encountered: