diff --git a/src/pip/_internal/req/req_install.py b/src/pip/_internal/req/req_install.py index c2624feed7c..ba604804232 100644 --- a/src/pip/_internal/req/req_install.py +++ b/src/pip/_internal/req/req_install.py @@ -337,7 +337,7 @@ def check_if_exists(self, use_user_site): no_marker = Requirement(str(self.req)) no_marker.marker = None self.satisfied_by = pkg_resources.get_distribution(str(no_marker)) - if self.editable and self.satisfied_by: + if (self.editable or self.link) and self.satisfied_by: self.conflicts_with = self.satisfied_by # when installing editables, nothing pre-existing should ever # satisfy