小编Ain*_*alë的帖子

为什么在使用 TextBlob 时收到 HTTP 错误 404?

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

问题是什么?我已经在多个设备上尝试过,但每次都会出现相同的错误。

python http textblob

8
推荐指数
1
解决办法
5955
查看次数

标签 统计

http ×1

python ×1

textblob ×1