情况描述:
1、pip install ***时报错提示:
pip 【WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, st】
2、python3使用requests请求https接口时会提示
Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available)
解决方案:重装python
1、wget https://www.python.org/ftp/python/3.7.8/Python-3.7.8.tgz
2、tar -zxvf https://www.python.org/ftp/python/3.7.8/Python-3.7.8.tgz
3、cd Python-3.7.8
4、vim Modules/Setup 找到这几行给注释打开

5、make && make install
验证一下 /usr/local/bin/pip3 install requests发现报错没了。使用requests时报错也没了!
4860

被折叠的 条评论
为什么被折叠?



