PyCharm执行responseRes = requests.post()时报错requests.exceptions.SSLError: HTTPSConnectionPool(host=‘passport.mafengwo.cn’, port=443): Max retries exceeded with url: /login/ (Caused by SSLError(“Can’t connect to HTTPS URL because the SSL module is not available.”))
问题描述
最近在做一个实现登陆网站的需求,用到了requests模块,当执行函数requests.post()时报错the SSL module is not available
尝试的解决方法
-
win10下添加anaconda的系统环境变量 ,
\Anaconda3
\Anaconda3\scripts
\Anaconda3\Library\bin
试验结果: 无效,因为在安装ananconda3时已经配置了环境变量,关闭pycharm重新运行代码