mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Closes #24267 - Does not check version on ensurepip uninstall
Ensure that the uninstall helper for Windows passes the proper flags to pip to prevent it from checking PyPI if the pip that we're currently attempting to uninstall is the latest verison.
This commit is contained in:
parent
11cf4f6498
commit
71a8589ddc
2 changed files with 21 additions and 6 deletions
|
@ -137,7 +137,7 @@ def _uninstall_helper(*, verbosity=0):
|
|||
_disable_pip_configuration_settings()
|
||||
|
||||
# Construct the arguments to be passed to the pip command
|
||||
args = ["uninstall", "-y"]
|
||||
args = ["uninstall", "-y", "--disable-pip-version-check"]
|
||||
if verbosity:
|
||||
args += ["-" + "v" * verbosity]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue