NLTK (Natural Language Toolkit): Download function hangs


The command freezes / hangs.


The command opens an interactive NLTK download window, which uses the Tk interactive GUI backend.

In contrast, Canopy, by default, uses the Qt interactive GUI backend. Two different interactive GUI backends cannot coexist in a single process, so they conflict and the program freezes or mis-behaves.


1) In Canopy's Preferences dialog (Python tab),  change the PyLab backend from Interactive (Qt4) to Inline (SVG), which does not include an interactive backend, so will not conflict with Tk.

or 2) From the same Preferences dialog, disable Pylab mode (so no interactive backend has been started).

or 3) Ensure that Canopy is your default Python in a Terminal or Command Prompt window (If you are on Windows, the easiest way to do this is just to go to the Start Menu and open a "Canopy Command Prompt" window). Then start ipython from the prompt (not in pylab mode, so no interactive backend), and run .

Have more questions? Submit a request


  • Avatar
    Adrian Murphy

    Thanks Jonathan, resolved my issue!

Powered by Zendesk