我使用的是Ubuntu14.04,在安装Python3.5.1时,在运行maketest之后,我得到了以下错误。在3 tests failed again:
test_httplib test_ssl test_urllibnet
测试\u urlibnet
^{pr2}$
测试\u httplibtest test_httplib failed -- Traceback (most recent call last):
File "/home/user/Softwares/Python-3.5.1/Lib/test/test_httplib.py", line 1325, in test_networked_good_cert
h.request('GET', '/')
File "/home/user/Softwares/Python-3.5.1/Lib/http/client.py", line 1083, in request
self._send_request(method, url, body, headers)
File "/home/user/Softwares/Python-3.5.1/Lib/http/client.py", line 1128, in _send_request
self.endheaders(body)
File "/home/user/Softwares/Python-3.5.1/Lib/http/client.py", line 1079, in endheaders
self._send_output(message_body)
File "/home/user/Softwares/Python-3.5.1/Lib/http/client.py", line 911, in _send_output
self.send(msg)
File "/home/user/Softwares/Python-3.5.1/Lib/http/client.py", line 854, in send
self.connect()
File "/home/user/Softwares/Python-3.5.1/Lib/http/client.py", line 1237, in connect
server_hostname=server_hostname)
File "/home/user/Softwares/Python-3.5.1/Lib/ssl.py", line 376, in wrap_socket
_context=self)
File "/home/user/Softwares/Python-3.5.1/Lib/ssl.py", line 747, in __init__
self.do_handshake()
File "/home/user/Softwares/Python-3.5.1/Lib/ssl.py", line 983, in do_handshake
self._sslobj.do_handshake()
File "/home/user/Softwares/Python-3.5.1/Lib/ssl.py", line 628, in do_handshake
self._sslobj.do_handshake()
ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:645)
测试sslResource 'sha256.tbs-internet.com' is not available
/home/user/Softwares/Python-3.5.1/Lib/unittest/case.py:628: ResourceWarning: unclosed
outcome.errors.clear()
/home/user/Softwares/Python-3.5.1/Lib/unittest/case.py:628: ResourceWarning: unclosed
outcome.errors.clear()
/home/user/Softwares/Python-3.5.1/Lib/unittest/case.py:628: ResourceWarning: unclosed
outcome.errors.clear()
/home/user/Softwares/Python-3.5.1/Lib/unittest/case.py:628: ResourceWarning: unclosed
outcome.errors.clear()
test test_ssl failed -- multiple errors occurred; run in verbose mode for details
如果我继续安装会影响到以后吗?
有什么原因吗?有什么解决办法吗?在
谢谢你