importing nltk in python 3.4.0

0 votes
asked Feb 20, 2017 by charitha-bayapureddy

I am new to python and using python 3.4.0. I have installed nltk and six but I am getting an error when importing.I have also tried upgrading. Its up to date.

import nltk
     Traceback (most recent call last):
     File "<pyshell#1>", line 1, in <module>
     import nltk
     File "C:\Python34\lib\site-packages\nltk\", line 128, in        <module>
    from nltk.chunk import *
    File "C:\Python34\lib\site-packages\nltk\chunk\", line 157, in <module>
    from nltk.chunk.api import ChunkParserI
    File "C:\Python34\lib\site-packages\nltk\chunk\", line 13, in <module>
    from nltk.parse import ParserI
    File "C:\Python34\lib\site-packages\nltk\parse\", line 77, in <module>
    from nltk.parse.malt import MaltParser
    File "C:\Python34\lib\site-packages\nltk\parse\", line 14, in <module>
    from six import text_type
    ImportError: No module named 'six'

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.
Welcome to Q&A, where you can ask questions and receive answers from other members of the community.
Website Online Counter