当我使用TextBlob时,为什么会出现HTTP错误404?

8

我在使用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

问题是什么?我尝试在几台设备上使用它,每次都会出现相同的错误。


每次我都会收到“HTTPError: HTTP Error 400: Bad Request”的错误提示。我认为这并没有什么用处。 - user3503711
1个回答

11

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接