Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions news/13034.trivial.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Tweaked UnsupportedWheel exception to suggest updating.
4 changes: 3 additions & 1 deletion src/pip/_internal/utils/wheel.py
Original file line number Diff line number Diff line change
@@ -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(
Loading
Oops, something went wrong.