From 74a094953aa37958b4765143c6cb3b12c842f43a Mon Sep 17 00:00:00 2001 From: Bjorn Neergaard Date: Thu, 15 Sep 2022 14:23:48 -0600 Subject: [PATCH] fix: run pip with --isolated to avoid bad local config --- src/poetry/utils/pip.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/poetry/utils/pip.py b/src/poetry/utils/pip.py index 24f9cbacc29..65414ac36b2 100644 --- a/src/poetry/utils/pip.py +++ b/src/poetry/utils/pip.py @@ -25,7 +25,13 @@ def pip_install( # either the virtual environment or the virtualenv package embedded wheel. Version # checks are a wasteful network call that adds a lot of wait time when installing a # lot of packages. - args = ["install", "--disable-pip-version-check", "--prefix", str(environment.path)] + args = [ + "install", + "--disable-pip-version-check", + "--isolated", + "--prefix", + str(environment.path), + ] if not is_wheel and not editable: args.insert(1, "--use-pep517")