From 85b8cd8eaa07b851dbdbf8ff4f4ecefa0b2939d8 Mon Sep 17 00:00:00 2001 From: James Webber Date: Sun, 20 Oct 2024 22:47:01 -0400 Subject: [PATCH] Update wheel.py added update nudge to UnsupportedWheel exception --- src/pip/_internal/utils/wheel.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pip/_internal/utils/wheel.py b/src/pip/_internal/utils/wheel.py index f85aee8a3f9..1707979f98c 100644 --- a/src/pip/_internal/utils/wheel.py +++ b/src/pip/_internal/utils/wheel.py @@ -125,7 +125,9 @@ def check_compatibility(version: Tuple[int, ...], name: str) -> None: if version[0] > VERSION_COMPATIBLE[0]: raise UnsupportedWheel( "{}'s Wheel-Version ({}) is not compatible with this version " - "of pip".format(name, ".".join(map(str, version))) + "of pip, update pip to install {} successfully".format( + name, ".".join(map(str, version)), name + ) ) elif version > VERSION_COMPATIBLE: logger.warning(