问题:
只是个记录帖):今天使用pip指令安装django时报错:
Could not fetch URL https://pypi.org/simple/django/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/django/ (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1129)'))) - skipping
如下图:
解决过程
尝试1:
网上搜了接解决方法说是安装源的问题,于是换了豆瓣、清华、阿里云各种安装源都还是一样报错,解决失败;
尝试2:
stackoverflow说是pip版本问题,需要用pip3才可以安装,尝试失败:
尝试3:
2的报错和1不太一样,试了一下1 2结合,解决失败:
解决方法:
想起来是忘了关梯子,关掉全局代理就行了…被自己无语到…