astral-sh / uv

An extremely fast Python package installer and resolver, written in Rust.
https://astral.sh/
Apache License 2.0
14.88k stars 421 forks source link

Add uninstallation steps for the tool in the documentation #1696

Open fervand1 opened 4 months ago

fervand1 commented 4 months ago

As an end user, it would be nice to also include uninstallation steps in the documentation or on pypi for windows specially if the tool is installed via the script irm https://astral.sh/uv/install.ps1 | iex. On pip it is relatively easy with pip uninstall.

zanieb commented 4 months ago

Seems reasonable!

wQvaale commented 3 months ago

Same issue here 👋

I initially installed uv by running curl -LsSf https://astral.sh/uv/install.sh | sh.

I realized I was behind on versions (v0.1.21) and noticed that uv self update was introduced in v0.1.23.

Since there were no explicit uninstallation instructions, and uv was installed as a standalone binary (not through Cargo, so cargo uninstall uv wasn't an option), I decided to manually uninstall it.

Here’s how I did it:

Clear the cache directory (optional, depending on your setup):

rm -rf $HOME/.cache/uv

Remove the uv binary

rm $HOME/.cargo/bin/uv

Then I ran the same install with curl, and now I have the self update capability. Life is great once again ✨