我在使用TextBlob库时遇到了一些问题。我尝试运行一个非常简单的代码片段,像这样:
from textblob import TextBlob
text = 'this is just a test'
blob = TextBlob(text)
blob.detect_language()
这个错误一直出现:
/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
问题是什么?我尝试在几台设备上使用它,每次都会出现相同的错误。