Re: How do you install a .whl file globally in debian without breaking system packages?
Hello David
On Fri, 10 Jul 2026 13:48:47 -0400
David Niklas <deference@null.net> wrote:
> I wanted to install a python pip wheel file globally without breaking my
> system packages. I tried searching online, but I cannot figure out how to
> do that
Two suggestions. For an installation which shall be available for weeks
(for instance `date2name`), I usually run
``` bash
pipx install date2name
```
and then have the command `date2name` available everywhere (within my
account). By `pipx list` I can see which version of Python supports the
environment, then upgrade one or all pipx supported packages. See
https://github.com/pypa/pipx
Then there equally is `uv` which can collect the .whl from PyPI and execute in
one command like, e.g.
``` bash
uvx sp-repo-review[cli] ./local_python_project
```
I prefer for the non-permanent deployment. The usual space cleaning goes by a
`uv cache clean`, and once in a while a `uv cache prune` to prevent a too large
deposit in `~/.cache/uv`. (Though one equally can request `uv` to permanently
install a tool, too.) See https://docs.astral.sh/uv/guides/tools/
Best regards,
Norwid
Best
Reply to: