diff --git a/src/pip/_internal/req/constructors.py b/src/pip/_internal/req/constructors.py index 86c50b176dd..172b4cb0335 100644 --- a/src/pip/_internal/req/constructors.py +++ b/src/pip/_internal/req/constructors.py @@ -118,7 +118,7 @@ def parse_editable(editable_req): link = Link(url) if not link.is_vcs: - backends = ", ".join(f"{backend.name}+" for backend in vcs.backends) + backends = ", ".join(vcs.all_schemes) raise InstallationError( f'{editable_req} is not a valid editable requirement. ' f'It should either be a path to a local project or a VCS URL '