Skip to content
← Back to Community
Why can't I import itertools when using Python (with Turtle)?
Profile icon
GollyWy

Hi. I'm 10 and learning with a book called Coding Projects in Python.
It's been going great but I'm stuck trying to import itertools.

I get the error.
ImportError: No module named itertools on line 82

Shouldn't itertools be available to import in repl.it?

Voters
Profile icon
AndreasSmets
Profile icon
GollyWy
Comments
hotnewtop
Profile icon
vedprad1

It has been working for me.

Try forking the repl into a new one, and trying it that way. That should solve the problem.

If this answers your question, please check the checkmark on the left side of this message. Thanks and Good Luck!

Profile icon
GollyWy

@vedprad1 Thanks for the answer. But it doesn't work.
Even if I create a brand new repo with one line of code I still get the error.
If you click + new repl and choose Python (with Turtle) are you able to import itertools?

👉 Here's an simpler example.