0

I tried to download nltk but keep on get error as below:

import nltk
nltk.download()

Error:

[Errno 11001] getaddrinfo failed

After I click the "ok" button, "NLTK Downloader" screen is showing: enter image description here

Ling
  • 307
  • 1
  • 11
  • maybe this is relevant https://stackoverflow.com/questions/27750608/error-installing-nltk-supporting-packages-nltk-download – Somya Avasthi Dec 12 '19 at 07:14

2 Answers2

1

you might need to change your directory first and then try to install it. as in my case while I was trying to install pip on my computer it was not in the correct directory. you might need to find the path of directory and then change your directory and then try to install it again.

0

I worked it out by manually download package from below site https://github.com/nltk/nltk_data/tree/gh-pages/packages

unzip and save to a folder:

C:\Users\xxxxxx\AppData\Roaming\nltk_data\corpora\stopwords

Thank you all for your help.

Ling
  • 307
  • 1
  • 11