Caused by SSLError("Can’t connect to HTTPS URL because the SSL module is not available)

时间:2021-11-06 02:57:46

window7系统;

今天刚安装的anaconda(开源的Python包管理器),把原来的python3和python2都给卸载了,结果运行爬虫程序的时候报错;

Caused by SSLError("Can’t connect to HTTPS URL because the SSL module is not available)

原因是anaconda没有安装好,环境变量没有配置成功,需要添加三条环境变量;

E:\anaconda;
E:\anaconda\Scripts;
E:\anaconda\Library\bin

重启pycharm解决;

参考文章: https://blog.csdn.net/submarineas/article/details/91142067