安装python时报错,安装时Python测试失败

我使用的是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

如果我继续安装会影响到以后吗?

有什么原因吗?有什么解决办法吗?在

谢谢你

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值