Skip to content
Open
Show file tree
Hide file tree
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
2 changes: 2 additions & 0 deletions news/13618.bugfix.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
When installing packages, pip will no longer show a misleading
error message that included extra markers such as ``; extra == "..."``.
4 changes: 2 additions & 2 deletions src/pip/_internal/resolution/resolvelib/factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -708,8 +708,8 @@ def _report_single_requirement_conflict(
"using the '-r' flag to install the packages listed in "
"requirements.txt"
)

return DistributionNotFound(f"No matching distribution found for {req}")
req_str = str(req).partition(";")[0].strip()
return DistributionNotFound(f"No matching distribution found for {req_str}")

def _has_any_candidates(self, project_name: str) -> bool:
"""
Expand Down