4 ms·
Does uv support global Python install now? I need something like Mise for this.
by mrbonner 2y ago
Does uv support global Python install now? I need something like Mise for this.
- shlomo_z 2y agouv python install 3.xx
- imjonse 2y agoThat 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.
- JimDabell 2y agoYou could always just `alias python="uv run python"`
- cbenz 2y agoYes 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/#adjusting-python-version-preferences https://docs.astral.sh/uv/concepts/python-versions/#adjustin... and https://docs.astral.sh/uv/reference/settings/#python-preference https://docs.astral.sh/uv/reference/settings/#python-prefere...
- zanie 2y agoWe'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 https://github.com/astral-sh/uv/issues/6265