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

https://stackoverflow.com/questions/45573833/error-in-downloading-nltk-data-errno-11004-getaddrinfo-failed/57273642#57273642

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.

猜你喜欢

转载自blog.csdn.net/weixin_51267929/article/details/113795275
今日推荐