python SSLError HTTPSConnectionPool bad handshake

SSLError

  • 錯誤信息

    requests.exceptions.SSLError: HTTPSConnectionPool(host='grwsyw.bjgjj.gov.cn', port=443): Max retries exceeded with url: /ish/flow/menu/SPDLMM0904 (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'SSL23_GET_SERVER_HELLO', 'sslv3 alert handshake failure')])")))
    
  • 解決方法: 版本不符、下載對應版本

    # python2下載版本:
    pip install requests==2.6.0  
    
    # python3下載版本
    pip install requests==2.7.0 
    
  • 參考鏈接

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章