Skip to content

Commit b3de8fd

Browse files
committed
fix: add --system flag to uv pip install for SkyPilot backend
Fixes setup failure on SkyPilot clusters with uv >= 0.8.18. Root cause: - uv 0.8.18+ changed behavior to require either a virtual environment or explicit --system flag for pip install operations - SkyPilot backend setup runs: uv pip install openpipe-art[backend] - This fails with: "error: No virtual environment found; run \`uv venv\`" Solution: Add --system flag to install into system Python (miniconda3 on cluster). Related issue: #416 - User reported same error after uv 0.8.18 release - Workarounds discussed: pin uv to 0.8.17 or use --system flag - This implements the --system flag approach Testing: - Tested on GCP with L4 GPU - openpipe-art==0.5.2 - 233 packages installed successfully Alternative considered: Pinning uv version in install script, but --system is cleaner and works with any uv version.
1 parent 519efe6 commit b3de8fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/art/skypilot/backend.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ async def _launch_cluster(
192192

193193
if art_version_is_semver:
194194
art_installation_command = (
195-
f"uv pip install openpipe-art[backend]=={art_version}"
195+
f"uv pip install --system openpipe-art[backend]=={art_version}"
196196
)
197197
elif os.path.exists(art_version):
198198
# copy the contents of the art_path onto the new machine

0 commit comments

Comments
 (0)