安裝nltk_data數據包的問題:[Errno 11004] getaddrinfo failed

問題: 安裝nltk時,在python shell中輸 import nltk nltk.download() 會出現以下問題 這是因爲nltk.download()下載連接不上 在C:\Windows\System32\drivers\etc中找到hosts文件 其中添加199.232.68.133 raw.githubusercontent.com 映射 這樣就可以打開下載了 OK
相關文章
相關標籤/搜索