mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 22:50:18 +00:00
use sys.executable for pip location --system
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user