Hacker News new | ask | show | jobs
by mrbonner 581 days ago
Does uv support global Python install now? I need something like Mise for this.
3 comments

Yes via the "--system" option of the different commands.

Or via the global "python-preference" option set to "only-system".

Cf https://docs.astral.sh/uv/concepts/python-versions/#adjustin... and https://docs.astral.sh/uv/reference/settings/#python-prefere...

We're working on this! You can try it out with `uv python install --preview`.

The work can be tracked in https://github.com/astral-sh/uv/issues/6265

uv python install 3.xx
That is not global. From the uv getting started docs:

"When Python is installed by uv, it will not be available globally (i.e. via the python command). Support for this feature is planned for a future release. In the meantime, use uv run or create and activate a virtual environment to use python directly."

So yes, one needs mise/asdf/pyenv or similar for global installs for now.

You could always just `alias python="uv run python"`