diff --git a/news/13034.trivial.rst b/news/13034.trivial.rst new file mode 100644 index 00000000000..6a499ae530f --- /dev/null +++ b/news/13034.trivial.rst @@ -0,0 +1 @@ +Tweaked UnsupportedWheel exception to suggest updating. 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(