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