use sys.executable for pip location --system

Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
This commit is contained in:
2018-03-07 09:52:10 -05:00
parent 5fa2b83e0c
commit beef07351d
+1 -1
View File
@@ -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