赞
踩
偶然间,在pip更新时报错
执行pip更新代码pip install --upgrade pip时候报错
错误代码:
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPSConnection object at 0x000001A617ACA490>, ‘Connection to pypi.org timed out. (connect timeout=15)’)’: /simple/pip/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPSConnection object at 0x000001A617ACA790>, ‘Connection to pypi.org timed out. (connect timeout=15)’)’: /simple/pip/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPSConnection object at 0x000001A617ACA910>, ‘Connection to pypi.org timed out. (connect timeout=15)’)’: /simple/pip/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPSConnection object at 0x000001A617ACAA00>, ‘Connection to pypi.org timed out. (connect timeout=15)’)’: /simple/pip/
Collecting pip
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPSConnection object at 0x000001A617BA1400>, ‘Connection to files.pythonhosted.org timed out. (connect timeout=15)’)’: /packages/50/c2/e06851e8cc28dcad7c155f4753da8833ac06a5c704c109313b8d5a62968a/pip-23.2.1-py3-none-any.whl
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPSConnection object at 0x000001A617BA16A0>, ‘Connection to files.pythonhosted.org timed out. (connect timeout=15)’)’: /packages/50/c2/e06851e8cc28dcad7c155f4753da8833ac06a5c704c109313b8d5a62968a/pip-23.2.1-py3-none-any.whl
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPSConnection object at 0x000001A617BA1850>, ‘Connection to files.pythonhosted.org timed out. (connect timeout=15)’)’: /packages/50/c2/e06851e8cc28dcad7c155f4753da8833ac06a5c704c109313b8d5a62968a/pip-23.2.1-py3-none-any.whl
Downloading pip-23.2.1-py3-none-any.whl (2.1 MB)
---------------------------------------- 2.1/2.1 MB 11.1 kB/s eta 0:00:00
ERROR: To modify pip, please run the following command:
D:\ANACONDA\envs\wspytorch\python.exe -m pip install --upgrade pip
参考大神帖子
https://blog.csdn.net/Nora_CC/article/details/130105864
安装pip
python -m ensurepip
更新pip
python -m pip install --upgrade pip
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。