Skip to content

Commit 538be70

Browse files
Use sys.executable to run pip in the 'install' command.
1 parent fee6abe commit 538be70

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

spin/cmds/pip.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import sys
2+
13
import click
24

35
from .util import run as _run
@@ -37,7 +39,7 @@ def install(*, pip_args, editable, verbose, verbose_import):
3739
pip install . --no-build-isolation --editable --no-clean
3840
"""
3941
pip_args = list(pip_args)
40-
pip_cmd = ["pip", "install"]
42+
pip_cmd = [sys.executable, "-m", "pip", "install"]
4143
pip_args += ["--no-build-isolation"]
4244

4345
if editable:

0 commit comments

Comments
 (0)