我在使用 TextBlob 库时遇到一些问题。我正在尝试运行一段非常简单的代码,如下所示:
from textblob import TextBlob
text = 'this is just a test'
blob = TextBlob(text)
blob.detect_language()
Run Code Online (Sandbox Code Playgroud)
它不断地给我这个错误:
/usr/lib/python3.7/urllib/request.py in http_error_default(self, req, fp, code, msg, hdrs)
647 class HTTPDefaultErrorHandler(BaseHandler):
648 def http_error_default(self, req, fp, code, msg, hdrs):
--> 649 raise HTTPError(req.full_url, code, msg, hdrs, fp)
650
651 class HTTPRedirectHandler(BaseHandler):
HTTPError: HTTP Error 404: Not Found
Run Code Online (Sandbox Code Playgroud)
问题是什么?我已经在多个设备上尝试过,但每次都会出现相同的错误。