python2.7 requests出现ssl报错

在开发中遇到一个问题 python requests 报出了ssl错误,错误内容如下

File "/usr/local/lib/python2.7/site-packages/requests/adapters.py", line 431, in send
    raise SSLError(e, request=request)
SSLError: [Errno 1] _ssl.c:504: error:14077438:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert internal error

解决方案:
pip install pyOpenSSL
pip install requests[security]

你可能感兴趣的:(ssl,python,网络协议)