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

FR: Support installing and managing uv with uv tool #6400

Closed
weihenglim opened this issue Aug 22, 2024 · 5 comments · Fixed by #8963
Closed

FR: Support installing and managing uv with uv tool #6400

weihenglim opened this issue Aug 22, 2024 · 5 comments · Fixed by #8963
Assignees
Labels
wish Not on the immediate roadmap

Comments

@weihenglim
Copy link

Currently the documentation's recommended way of installing uv is via pipx. With the release of uv tool, it would be great to let uv manage itself, similar to how you can do pipx install pipx.

When testing on my Windows 11 machine, uv tool install uv works but the tool breaks when attempting to upgrade uv to the latest version:

> uv tool upgrade uv 
Resolved 1 package in 38ms
Prepared 1 package in 1ms
Installed 1 package in 8ms
 + uv==0.3.1
error: failed to remove file `C:\Users\User\.local\bin\uv.exe`
  Caused by: Access is denied. (os error 5)

> uv tool list
warning: Ignoring malformed tool `uv` (run `uv tool uninstall uv` to remove)
@charliermarsh
Copy link
Member

Ahh yeah, that's a known issue on Windows: #1368. You should be able to do uv self update if you installed via the standalone installers (as opposed to through pip or similar).

@weihenglim
Copy link
Author

Ah that's a shame, was hoping it would be possible to just upgrade everything (including uv itself) with a single uv tool upgrade --all command. Guess I'll stick with the standalone installers for now.

@zanieb zanieb added the wish Not on the immediate roadmap label Aug 22, 2024
@zanieb
Copy link
Member

zanieb commented Aug 22, 2024

I'm not sure it makes sense to manage uv with uv, it creates a weird chicken and egg problem. You can definitely do uvx uv@version though!

@konstin
Copy link
Member

konstin commented Aug 22, 2024

rustup update updates both its managed toolchains, then does a self update, we should consider a similar convenience function for uv.

@zanieb
Copy link
Member

zanieb commented Aug 22, 2024

Hm like uv upgrade?

  • Upgrade self
  • Upgrade all tools
  • Upgrade all Python versions

Could be cool.

@charliermarsh charliermarsh self-assigned this Nov 9, 2024
charliermarsh added a commit that referenced this issue Dec 10, 2024
## Summary

Extending self-delete and self-replace functionality to uv itself on
Windows.

Closes #6400.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wish Not on the immediate roadmap
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants