Python how to install the itertools module on Debian

I am new to Python. I wanted to try out the itertools package from Python. But I got the error:

NameError: global name 'itertools' is not defined

How to resolve this error? Do I need to install this module? I have included from itertools import *.

How to install this module? Where do I find the itertools module/package? I searched on google but it kept referring to documentation page of itertools.

I am using Debian 6. I have Python 2.6.

4 Reset to default

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like