Error in downloading NLTK data: [Errno 11004] getaddrinfo failed

Viewed 9774

I have installed NLTK module but when I try to install the data I am getting the error below.

enter image description here

>>>import nltk
>>> nltk.download('punkt')
[nltk_data] Error loading punkt: <urlopen error [Errno 11004]
[nltk_data]     getaddrinfo failed>
False

How should I install the data?

2 Answers

The issue might be of the Proxy that is setup in the system.

instead of:

import nltk

nltk.download()

use:

nltk.set_proxy('SYSTEM PROXY')

nltk.download()

This should solve the problem. And to find the proxy of the system: seach proxy in start option of windows.

Related