Added os.path.expanduser when searching for pip executable.
This commit is contained in:
parent
21339664ce
commit
f07096bfe5
1 changed files with 1 additions and 0 deletions
|
@ -179,6 +179,7 @@ def _get_pip(module, env=None, executable=None):
|
|||
candidate_pip_basenames = ['pip', 'python-pip', 'pip-python']
|
||||
pip = None
|
||||
if executable is not None:
|
||||
executable = os.path.expanduser(executable)
|
||||
if os.path.isabs(executable):
|
||||
pip = executable
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue