当前位置:   article > 正文

pip的版本报错,以及WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None))

warning: retrying (retry(total=4, connect=none, read=none, redirect=none, st

使用pip时出现警告:
WARNING: There was an error checking the latest version of pip.
可以进行版本升级,用以下两个语句之一更新版本:

python -m pip install --upgrade pip
pip install --upgrade pip
  • 1
  • 2

若还是不行,或者出现报错

WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', OSError(0, 'Error'))': /simple/pip/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', OSError(0, 'Error'))': /simple/pip/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', OSError(0, 'Error'))': /simple/pip/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', OSError(0, 'Error'))': /simple/pip/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', OSError(0, 'Error'))': /simple/pip/
  • 1
  • 2
  • 3
  • 4
  • 5

考虑可能是挂着代理,把代理关掉看一下
或者降低pip版本,将pip版本降低的语句为:

python -m pip install pip==20.2.2
python -m pip install pip==20.2.2 -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
  • 1
  • 2
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/羊村懒王/article/detail/209273?site
推荐阅读
相关标签
  

闽ICP备14008679号