问题:

安装nltk时,在python shell中输

import nltk

nltk.download()

会出现以下问题

安装nltk_data数据包的问题:[Errno 11004] getaddrinfo failed

这是因为nltk.download()下载连接不上

在C:\Windows\System32\drivers\etc中找到hosts文件

其中添加199.232.68.133 raw.githubusercontent.com 映射

安装nltk_data数据包的问题:[Errno 11004] getaddrinfo failed

这样就可以打开下载了

OK

相关文章:

  • 2022-12-23
  • 2021-12-12
  • 2021-09-30
  • 2022-12-23
  • 2021-04-09
  • 2018-12-22
猜你喜欢
  • 2021-05-22
  • 2022-12-23
  • 2021-05-02
  • 2021-07-10
  • 2021-07-08
  • 2021-11-10
  • 2021-10-14
相关资源
相似解决方案