Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Use sys.executable to run pip in the 'install' command.
  • Loading branch information
WarrenWeckesser committed Aug 6, 2025
commit 538be70cddcc79a876a2de20b5d41994df210c1f
4 changes: 3 additions & 1 deletion spin/cmds/pip.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import sys

import click

from .util import run as _run
Expand Down Expand Up @@ -37,7 +39,7 @@ def install(*, pip_args, editable, verbose, verbose_import):
pip install . --no-build-isolation --editable --no-clean
"""
pip_args = list(pip_args)
pip_cmd = ["pip", "install"]
pip_cmd = [sys.executable, "-m", "pip", "install"]
pip_args += ["--no-build-isolation"]

if editable:
Expand Down
Loading