Skip to content

Commit 85b8cd8

Browse files
authored
Update wheel.py
added update nudge to UnsupportedWheel exception
1 parent 53ba3fb commit 85b8cd8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/pip/_internal/utils/wheel.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,9 @@ def check_compatibility(version: Tuple[int, ...], name: str) -> None:
125125
if version[0] > VERSION_COMPATIBLE[0]:
126126
raise UnsupportedWheel(
127127
"{}'s Wheel-Version ({}) is not compatible with this version "
128-
"of pip".format(name, ".".join(map(str, version)))
128+
"of pip, update pip to install {} successfully".format(
129+
name, ".".join(map(str, version)), name
130+
)
129131
)
130132
elif version > VERSION_COMPATIBLE:
131133
logger.warning(

0 commit comments

Comments
 (0)