Open kevinsimper opened 1 day ago
Thanks for the report @kevinsimper 🙌 cc @cg505 who's been looking into using uv in the backend.
Hi @kevinsimper! How did you install skypilot? Does uv pip install pip
resolve this issue?
I think we should add pip
as a package dependency to resolve this, since we use it during wheel build. At the moment we are just assuming it's present, but this won't be the case in uv
venvs. @Michaelvll any concern with this?
@cg505 No, you install with uv add skypilot[gcp]
The bigger problem is that uv is not a pip replacement (their words)
So running subcommand to run a pip command will execute the wrong pip executable, and wheel is not a happy command to support because of legacy reasons https://github.com/astral-sh/uv/issues/1681
@kevinsimper In my testing, uv add pip
(or uv pip install pip
if you are just using a venv, outside a project) seems to work. It looks like uv
will set up the environment correctly so that we get the right pip executable. (Specifically, it modifies PATH so that the venv bin is the very first element, and sets the VIRTUAL_ENV var as well.)
Ideally this can happen without using a subprocess, but it seems like it works either way.
To clarify, I'm NOT asking you to install pip so that you can use it to install skypilot instead of using uv - just asking you to install it so that skypilot can use it correctly during provisioning.
Love skypilot 💝
I was trying to use with UV, but it fails on this command
I guess skypilot is meant to be run within a managed venv, so I get why it fails, but it would be nice if skypilot had uv support.
Version & Commit info:
sky -v
: skypilot, version 0.7.0sky -c
: skypilot, commit 3f625886bf1b13ee463a9f8e0f6741f620f7f66f