诡异的错误:OpenSSL.SSL.Error: [('SSL routines', 'ssl3_get_record', 'decryption failed or bad record mac')
openssl
传输层安全性/安全套接层及其加密库
项目地址:https://gitcode.com/gh_mirrors/ope/openssl
免费下载资源
·
最近在学习pytorch,所以必须首先配置环境,但是在此期间出现了如题所述的错误,更奇怪的是当自己要安装opencv是竟然出现了同样的错误(以上均是在服务器上进行的),真是令人发指。。。。
首先看错误信息:
Traceback (most recent call last):
File "/home/zqzhu/anaconda3/lib/python3.7/site-packages/pip/_vendor/urllib3/contrib/pyopenssl.py", line 294, in recv_into
return self.connection.recv_into(*args, **kwargs)
File "/home/zqzhu/anaconda3/lib/python3.7/site-packages/OpenSSL/SSL.py", line 1814, in recv_into
self._raise_ssl_error(self._ssl, result)
File "/home/zqzhu/anaconda3/lib/python3.7/site-packages/OpenSSL/SSL.py", line 1614, in _raise_ssl_error
raise WantReadError()
OpenSSL.SSL.WantReadError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/zqzhu/anaconda3/lib/python3.7/site-packages/pip/_internal/cli/base_command.py", line 179, in main
status = self.run(options, args)
File "/home/zqzhu/anaconda3/lib/python3.7/site-packages/pip/_internal/commands/install.py", line 315, in run
resolver.resolve(requirement_set)
File "/home/zqzhu/anaconda3/lib/python3.7/site-packages/pip/_internal/resolve.py", line 131, in resolve
self._resolve_one(requirement_set, req)
File "/home/zqzhu/anaconda3/lib/python3.7/site-packages/pip/_internal/resolve.py", line 294, in _resolve_one
abstract_dist = self._get_abstract_dist_for(req_to_install)
File "/home/zqzhu/anaconda3/lib/python3.7/site-packages/pip/_internal/resolve.py", line 242, in _get_abstract_dist_for
self.require_hashes
File "/home/zqzhu/anaconda3/lib/python3.7/site-packages/pip/_internal/operations/prepare.py", line 334, in prepare_linked_requirement
progress_bar=self.progress_bar
File "/home/zqzhu/anaconda3/lib/python3.7/site-packages/pip/_internal/download.py", line 878, in unpack_url
progress_bar=progress_bar
File "/home/zqzhu/anaconda3/lib/python3.7/site-packages/pip/_internal/download.py", line 702, in unpack_http_url
progress_bar)
File "/home/zqzhu/anaconda3/lib/python3.7/site-packages/pip/_internal/download.py", line 946, in _download_http_url
_download_url(resp, link, content_file, hashes, progress_bar)
File "/home/zqzhu/anaconda3/lib/python3.7/site-packages/pip/_internal/download.py", line 639, in _download_url
hashes.check_against_chunks(downloaded_chunks)
File "/home/zqzhu/anaconda3/lib/python3.7/site-packages/pip/_internal/utils/hashes.py", line 62, in check_against_chunks
for chunk in chunks:
File "/home/zqzhu/anaconda3/lib/python3.7/site-packages/pip/_internal/download.py", line 607, in written_chunks
for chunk in chunks:
File "/home/zqzhu/anaconda3/lib/python3.7/site-packages/pip/_internal/utils/ui.py", line 159, in iter
for x in it:
File "/home/zqzhu/anaconda3/lib/python3.7/site-packages/pip/_internal/download.py", line 596, in resp_read
decode_content=False):
File "/home/zqzhu/anaconda3/lib/python3.7/site-packages/pip/_vendor/urllib3/response.py", line 494, in stream
data = self.read(amt=amt, decode_content=decode_content)
File "/home/zqzhu/anaconda3/lib/python3.7/site-packages/pip/_vendor/urllib3/response.py", line 442, in read
data = self._fp.read(amt)
File "/home/zqzhu/anaconda3/lib/python3.7/site-packages/pip/_vendor/cachecontrol/filewrapper.py", line 62, in read
data = self.__fp.read(amt)
File "/home/zqzhu/anaconda3/lib/python3.7/http/client.py", line 447, in read
n = self.readinto(b)
File "/home/zqzhu/anaconda3/lib/python3.7/http/client.py", line 491, in readinto
n = self.fp.readinto(b)
File "/home/zqzhu/anaconda3/lib/python3.7/socket.py", line 589, in readinto
return self._sock.recv_into(b)
File "/home/zqzhu/anaconda3/lib/python3.7/site-packages/pip/_vendor/urllib3/contrib/pyopenssl.py", line 309, in recv_into
return self.recv_into(*args, **kwargs)
File "/home/zqzhu/anaconda3/lib/python3.7/site-packages/pip/_vendor/urllib3/contrib/pyopenssl.py", line 309, in recv_into
return self.recv_into(*args, **kwargs)
File "/home/zqzhu/anaconda3/lib/python3.7/site-packages/pip/_vendor/urllib3/contrib/pyopenssl.py", line 309, in recv_into
return self.recv_into(*args, **kwargs)
[Previous line repeated 7 more times]
File "/home/zqzhu/anaconda3/lib/python3.7/site-packages/pip/_vendor/urllib3/contrib/pyopenssl.py", line 294, in recv_into
return self.connection.recv_into(*args, **kwargs)
File "/home/zqzhu/anaconda3/lib/python3.7/site-packages/OpenSSL/SSL.py", line 1814, in recv_into
self._raise_ssl_error(self._ssl, result)
File "/home/zqzhu/anaconda3/lib/python3.7/site-packages/OpenSSL/SSL.py", line 1639, in _raise_ssl_error
_raise_current_error()
File "/home/zqzhu/anaconda3/lib/python3.7/site-packages/OpenSSL/_util.py", line 54, in exception_from_error_queue
raise exception_type(errors)
OpenSSL.SSL.Error: [('SSL routines', 'ssl3_get_record', 'decryption failed or bad record mac')]
然后自己在google上找了一下,然后各种巴拉巴拉的解决方法,最后一种没有试,我的解决办法就是一直进行安装,直到成功为止。
最后,希望同样遇到类似错误的大侠们可以告诉我你的解决方法,吾将不甚感激!!!
GitHub 加速计划 / ope / openssl
20
1
下载
传输层安全性/安全套接层及其加密库
最近提交(Master分支:3 个月前 )
5b94140b
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
Reviewed-by: Paul Dale <ppzgs1@gmail.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/26462)
1 天前
1dafff06
When a requested parameter has a non-NULL result pointer,
and the error isn't simply that the result buffer is too
small, don't return a non-zero result size.
Returning a non-zero result size that isn't larger than the
user's provided space is an indication that a result of
that size was actually written, inviting trouble if the
error indication was inadvertenly lost.
Also, in such cases (wrong type, data can't be converted to the
requested type when otherwise supported, ...) there is nothing useful to
be done with the return size value, it can't help to address the
problem.
Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Paul Dale <ppzgs1@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/26436)
1 天前
更多推荐
已为社区贡献6条内容
所有评论(0)