Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable uv self-update via uv pip commands on Windows #3339

Closed
FredStober opened this issue May 2, 2024 · 1 comment
Closed

Enable uv self-update via uv pip commands on Windows #3339

FredStober opened this issue May 2, 2024 · 1 comment

Comments

@FredStober
Copy link
Contributor

On windows, uv should be able to update itself when uv is installed into a virtual environment.

  • The command you invoked (e.g., uv pip sync requirements.txt), ideally including the --verbose flag.
uv venv --seed test
test\Scripts\activate
pip install "uv==0.1.35"
uv pip install "uv==0.1.38"

Results under windows in error: failed to remove file <......>\test\Lib\site-packages\../../Scripts/uv.exe

The minimal example is just to show how to trigger the error. The same issue appears with a much more likely uv pip sync, whenever uv is listed as part of the requirements.

  • The current uv platform

This affects all uv versions under windows (very likely due to the system limitations related to running processes).
There are different workarounds imaginable, so it would be nice if one could be implemented. Alternatively, uv should probably avoid even trying to do this and abort with a nicer error message, indicating that this is not supported - at least under windows, since it works fine on linux.

@charliermarsh
Copy link
Member

Thanks -- I believe this is the same as #1368 and #1327.

@charliermarsh charliermarsh closed this as not planned Won't fix, can't repro, duplicate, stale May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants