• requests.exceptions.SSLError: HTTPSConnectionPool报错解决方案


     运行脚本报错:

    Traceback (most recent call last):
    File "F:/Interface_Study/study_requests/auto_get_post.py", line 24, in <module>
    res = Calendar_Query().request_main(url,'get',data)
    File "F:/Interface_Study/study_requests/auto_get_post.py", line 12, in request_main
    response_data = requests.get(url,data)
    File "E:ProgramDataAnaconda3envspython37libsite-packages equestsapi.py", line 75, in get
    return request('get', url, params=params, **kwargs)
    File "E:ProgramDataAnaconda3envspython37libsite-packages equestsapi.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
    File "E:ProgramDataAnaconda3envspython37libsite-packages equestssessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
    File "E:ProgramDataAnaconda3envspython37libsite-packages equestssessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
    File "E:ProgramDataAnaconda3envspython37libsite-packages equestsadapters.py", line 514, in send
    raise SSLError(e, request=request)
    requests.exceptions.SSLError: HTTPSConnectionPool(host='api.yonyoucloud.com', port=443): Max retries exceeded with url: /apis/dst/calendarholiday/calendar_queryHoliday?countrycode=CN&date=2019-11-25 (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available."))

    解决方案:

     

     按照以上方法进行安装后,发现还是报一样的错误。未果。

    重新采用另一种解决方案:

    已解决:

  • 相关阅读:
    nohup ./startWebLogic.sh >out.log 2>&1 & 解析
    Eclipse debug 断点不能调试 ,Eclipse Unable to install breakpoint in 解决办法
    Servlet工作原理解析(tomcat7、嵌入式服务器)
    Servlet工作原理
    [Java] SpringMVC工作原理之四:MultipartResolver
    SQLite_安装
    leetcode_315_逆序对问题
    git 学习 3
    dubbo与zookeeper
    Kafka安装
  • 原文地址:https://www.cnblogs.com/xqq-admin-content/p/11928363.html
Copyright © 2020-2023  润新知