(ssl.SSLError: [SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1091)

pip install requests==2.19.1

pip install certifi==2018.8.13

pip install incremental

 先把上面三个一装,单纯的第三方库的版本问题,更新下ssl包之类的

_ssl.c:1091和_ssl.c:749的问题就能解决了

 

在运行的过程中还发现了点问题

InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. 
See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)

有这个提示虽然不报错,但是怎么可以让程序出现报红呢,不爽我们就干掉它

提示让我们see,那我们就去see one see

 

import urllib3
urllib3.disable_warnings()

 

 不犹豫直接抄

 直接搞定

nice~

posted @ 2021-11-29 09:47  黑山老道  阅读(4802)  评论(0编辑  收藏  举报