Linked Questions

Popular Questions

Not able to download nltk.download() in jupiter notebook

Asked by At

I am trying to download the whole text book but its just showing kernel busy. I left it for half an hour but still showing in busy state. When I stopped it, below error came. Can anyone guide me how to fix the issue or am I not following the steps properly.


KeyboardInterrupt                         Traceback (most recent call last)
<ipython-input-3-fec50ed38a60> in <module>()
      1 import nltk
----> 2 nltk.download()

C:\Users\\Anaconda2\lib\site-packages\nltk\downloader.pyc in download(self, info_or_id, download_dir, quiet, force, prefix, halt_on_error, raise_on_error)
    659             # function should make a new copy of self to use?
    660             if download_dir is not None: self._download_dir = download_dir
--> 661             self._interactive_download()
    662             return True
    663 

C:\Users\\Anaconda2\lib\site-packages\nltk\downloader.pyc in _interactive_download(self)
    980         if TKINTER:
    981             try:
--> 982                 DownloaderGUI(self).mainloop()
    983             except TclError:
    984                 DownloaderShell(self).run()

C:\Users\\Anaconda2\lib\site-packages\nltk\downloader.pyc in mainloop(self, *args, **kwargs)
   1715 
   1716     def mainloop(self, *args, **kwargs):
-> 1717         self.top.mainloop(*args, **kwargs)
   1718 
   1719     #/////////////////////////////////////////////////////////////////

C:\Users\\Anaconda2\lib\lib-tk\Tkinter.pyc in mainloop(self, n)
   1127     def mainloop(self, n=0):
   1128         """Call the mainloop of Tk."""
-> 1129         self.tk.mainloop(n)
   1130     def quit(self):
   1131         """Quit the Tcl interpreter. All widgets will be destroyed."""

KeyboardInterrupt: 

command used in jupiter notebook

import nltk
nltk.download()

Related Questions