Skip to content
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

cannot import name 'izip' #52

Open
JunfengZZZZhou opened this issue May 15, 2019 · 4 comments
Open

cannot import name 'izip' #52

JunfengZZZZhou opened this issue May 15, 2019 · 4 comments

Comments

@JunfengZZZZhou
Copy link

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
Copy link

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

@JunfengZZZZhou
Copy link
Author

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

It works! Thank you very much!

@cgntiger
Copy link

cgntiger commented Mar 8, 2021

try:
from itertools import izip
except ImportError:
pass

@1633347510
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants