YYuanAnyVision / mxnet_mtcnn_face_detection

MTCNN face detection
738 stars 314 forks source link

cannot import name 'izip' #52

Open JunfengZZZZhou opened 5 years ago

JunfengZZZZhou commented 5 years ago

I use miniconda and activate environment python2.7, but it shows

Traceback (most recent call last): File "main.py", line 3, in from mtcnn_detector import MtcnnDetector File "C:\ZhouJunfeng\project\facial-expression\mxnet_mtcnn_face_detection\mtcnn_detector.py", line 9, in from itertools import izip ImportError: cannot import name 'izip'

I have tried changing izip into zip, but that didn't work. What should I do?

hanksoga commented 5 years ago

delete from itertools import izip,and add izip = zip.

JunfengZZZZhou commented 5 years ago

delete from itertools import izip,and add izip = zip.

It works! Thank you very much!

cgntiger commented 3 years ago

try: from itertools import izip except ImportError: pass

1633347510 commented 3 years ago

please try 'izip=zip', it may be works~