getting error while importing nltk

by: Rohit Jha, 7 years ago


>>> import nltk
Traceback (most recent call last):
  File "<pyshell#0>", line 1, in <module>
    import nltk
  File "C:Usersrohit54AppDataLocalProgramsPythonPython36-32libsite-packagesnltk__init__.py", line 128, in <module>
    from nltk.chunk import *
  File "C:Usersrohit54AppDataLocalProgramsPythonPython36-32libsite-packagesnltkchunk__init__.py", line 157, in <module>
    from nltk.chunk.api import ChunkParserI
  File "C:Usersrohit54AppDataLocalProgramsPythonPython36-32libsite-packagesnltkchunkapi.py", line 13, in <module>
    from nltk.parse import ParserI
  File "C:Usersrohit54AppDataLocalProgramsPythonPython36-32libsite-packagesnltkparse__init__.py", line 81, in <module>
    from nltk.parse.corenlp import CoreNLPParser, CoreNLPDependencyParser
  File "C:Usersrohit54AppDataLocalProgramsPythonPython36-32libsite-packagesnltkparsecorenlp.py", line 17, in <module>
    import requests
ModuleNotFoundError: No module named 'requests'




what to do?



You must be logged in to post. Please login or register an account.



hello, I'm new to this as well, but the only error I can see is related to the requests module, the error is implying the module has not been installed.

-jasonrobert 7 years ago

You must be logged in to post. Please login or register an account.