尝试将 discord.py 安装到 Raspberry Pi 上,但它给了我一个远程端关闭关闭连接,没有 respoonse 例外



试图将discord.py安装到raspberry pi 3b上,但在运行pip安装后,它没有安装,而是返回此异常。我想知道这里发生了什么,这样我就可以修复它。

Traceback (most recent call last):
File "/usr/share/python-wheels/urllib3-1.19.1-py2.py3-none-any.whl/urllib3/connectionpool.py", line 594, in urlopen
chunked=chunked)
File "/usr/share/python-wheels/urllib3-1.19.1-py2.py3-none-any.whl/urllib3/connectionpool.py", line 391, in _make_request
six.raise_from(e, None)
File "<string>", line 2, in raise_from
File "/usr/share/python-wheels/urllib3-1.19.1-py2.py3-none-any.whl/urllib3/connectionpool.py", line 387, in _make_request
httplib_response = conn.getresponse()
File "/usr/lib/python3.5/http/client.py", line 1198, in getresponse
response.begin()
File "/usr/lib/python3.5/http/client.py", line 297, in begin
version, status, reason = self._read_status()
File "/usr/lib/python3.5/http/client.py", line 266, in _read_status
raise RemoteDisconnected("Remote end closed connection without"
http.client.RemoteDisconnected: Remote end closed connection without response```

1-仔细检查令牌并尝试重新生成机器人令牌或尝试使用另一个机器人令牌

2-在树莓皮上打开浏览器,然后转到discord网站(当我使用新的托管服务时,这个解决方案总是对我有效(

我希望它对你有效,如果什么都不起作用,请检查网络连接。

我不确定这是否有帮助,但discord适用于python 3+,所以尝试$pip3 install discord.py

相关内容

最新更新