From beef07351dfa75c515f3daf348582200b9a032a9 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Wed, 7 Mar 2018 09:52:10 -0500 Subject: [PATCH] use sys.executable for pip location --system Signed-off-by: Kenneth Reitz --- pipenv/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pipenv/core.py b/pipenv/core.py index a822619d..446622b6 100644 --- a/pipenv/core.py +++ b/pipenv/core.py @@ -1499,7 +1499,7 @@ def which_pip(allow_global=False): return which('pip', location=os.environ['VIRTUAL_ENV']) for p in ('pip', 'pip2', 'pip3'): - where = system_which(p) + where = '{0} -m pip'.format(sys.executable) if where: return where