卸载 uv python 包安装程序

问题描述 投票:0回答:1

我最近使用文档中提供的命令行在 Linux 上安装了 uv

curl -LsSf https://astral.sh/uv/install.sh | sh

它在

/home/currentuser/.cargo/bin/uv
中创建了一个可执行文件。现在,出于好奇,我想知道如何正确删除它。难道只是删除文件那么简单吗?或者有没有更干净的脚本或命令行?

请注意,我也尝试过

pip install/uninstall uv
,它运行得很好,但安装路径不同。
谢谢。

python-3.x python-packaging
1个回答
0
投票

我是他们说的安装脚本

This script .. unpacks the binaries and installs them to \$CARGO_HOME/bin 
(\$HOME/.cargo/bin)

It will then add that dir to PATH by adding the appropriate line to your 
shell profiles.

因此您只需删除该文件即可。 您也可以删除他们添加到您的 shell rc 文件中的

. "$HOME/.cargo/env"
但这不是必需的。

顺便说一句,他们确实有添加卸载文档的任务 https://github.com/astral-sh/uv/issues/1696 所以稍后我们会看到官方说明..

© www.soinside.com 2019 - 2024. All rights reserved.